title: how to set dropdown to select after onclick event in javascript
body: <p>I have a dropdown with few options in it and a onclick event on a button , after making the selection from the dropdown and clicking on the button how do i set the dropdown to its default that is select by JavaScript.</p>
  
  <pre><code> &lt;select id="userType"&gt;
                &lt;option value="Select" disabled selected 
                id="myDefault"&gt;Select&lt;/option&gt;
                &lt;option value="1"&gt;Games&lt;/option&gt;
                &lt;option value="2"&gt;Movies&lt;/option&gt;
             &lt;/select&gt;
   &lt;button type="button" name="button"onclick="addOption()"&gt;Send&lt;/button&gt;
  
  function addOption(){
   if (userType.value === "Select") {
      alert("Please select correct option");
   }
   else{
      console.log(userType.options[userType.selectedIndex].value);
   }
   document.getElementById('userType').value = "Select";
  </code></pre>
  
  <p>}</p>