title: How do I auto click an options drop down?
body: <p>Here is the code that I have. It does select the option, but it does not click on it. I need it to click on the option or it will not work with the rest of my script. Any way of actually simulating a click?</p>
  
  <pre><code>//Country
  function setOption(selectElement, value) {
      var options = selectElement.options;
      for (var i = 0, optionsLength = options.length; i &lt; optionsLength; i++) {
          if (options[i].value == value) {
              selectElement.selectedIndex = i;
              return true;
          }
      }
      return false;
  }
  
  setOption(document.getElementById('billCountry'), Co);
  
  
  //State
  function setOption(selectElement, value) {
      var options = selectElement.options;
      for (var i = 0, optionsLength = options.length; i &lt; optionsLength; i++) {
          if (options[i].value == value) {
              selectElement.selectedIndex = i;
              return true;
          }
      }
      return false;
  }
  
  setOption(document.getElementById('billState'), Sa); 
  </code></pre>
  
  <p>Thank you for the help.</p>