title: VBA .getElementbyID and passing value to an onchange javascript event
body: <p>I have the following code which selects an item from the drop down by using the .getelementbyid method.  The way the page works is once the item is selected, a new screen populates allowing to send a user a message to someone (the form uses an onchange event to handle when you select an item from the drop down list).  When running this code, it selects the proper item but the page does not repopulate.</p>
  
  <pre><code>With HTMLDoc2
  
  .getElementById("navbar1").setAttribute "value", "getaddr"
  
  End With
  </code></pre>
  
  <p>How do you force the form to recognize that you have selected one of the drop down items and process the onchange event?</p>