title: How to programmatically change the selected item in this drop down menu?
body: <pre><code>&lt;DIV class="uiMenu uiSelectorMenu" role=menu&gt;
  &lt;UL class=uiMenuInner bindPoint="menu"&gt;
  &lt;LI class="uiMenuItem uiMenuItemRadio uiSelectorOption  checked" data-label="Paused"&gt;&lt;A aria-checked=true class=itemAnchor role=menuitemradio tabIndex=0 href="#" rel=ignore&gt;&lt;SPAN class="itemLabel fsm"&gt;&lt;SPAN class=icon_wrap&gt;&lt;IMG class="selector icon" src="/images/adz/ad_states/paused.gif"&gt;&lt;/SPAN&gt;Paused&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
  &lt;LI class="uiMenuItem uiMenuItemRadio uiSelectorOption " data-label="Active"&gt;&lt;A aria-checked=true class=itemAnchor role=menuitemradio tabIndex=1 href="#" rel=ignore&gt;&lt;SPAN class="itemLabel fsm"&gt;&lt;SPAN class=icon_wrap&gt;&lt;IMG class="selector icon" src="/images/adz/ad_states/running.gif"&gt;&lt;/SPAN&gt;Active&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
  &lt;LI class="uiMenuItem uiMenuItemRadio uiSelectorOption " data-label="Deleted"&gt;&lt;A aria-checked=true class=itemAnchor role=menuitemradio tabIndex=2 href="#" rel=ignore&gt;&lt;SPAN class="itemLabel fsm"&gt;&lt;SPAN class=icon_wrap&gt;&lt;IMG class="selector icon" src="/images/adz/ad_states/deleted.gif"&gt;&lt;/SPAN&gt;Deleted&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN bindPoint="copy_link_wrapper"&gt;&lt;A class=copy_link href="#"&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SELECT bindPoint="select"&gt;&lt;OPTION value=""&gt;&lt;/OPTION&gt;&lt;OPTION selected value=2&gt;Paused&lt;/OPTION&gt;&lt;OPTION value=1&gt;Active&lt;/OPTION&gt;&lt;OPTION value=99&gt;Deleted&lt;/OPTION&gt;&lt;/SELECT&gt; &lt;/DIV&gt;&lt;/TD&gt;
  &lt;TD id=td_time_start_html_last_row class=td_time_start_html ?&gt;
  </code></pre>
  
  <p>Above is the HTML code for the drop down menu I want to change.</p>
  
  <p>At the end of the code it has SELECT, OPTION etc.. which I can normally change things on, but when I change the selectedIndex it doesn't do anything on the website, I am assuming the beginning part of the code has something to do with that.</p>
  
  <p>Here is my VB6 code (note you can show me in any language)</p>
  
  <pre><code>For i = 0 To Form1.WebBrowser1.Document.All.length - 1 '
      If Form1.WebBrowser1.Document.All.Item(i).nodeName = "SELECT" Then
          For x = 0 To Form1.WebBrowser1.Document.All.Item(i).Options.length - 1
              If InStr(Form1.WebBrowser1.Document.All.Item(i).Options(x).Text, "Active") &gt; 0 Then
                  Form1.WebBrowser1.Document.All.Item(i).selectedIndex = x
              End If
          Next x
      End If
  Next i
  </code></pre>
  
  <p>When I run that code, and I check the items value with
  Debug.Print Form1.WebBrowser1.Document.All.Item(i).Options(x).Selected
  it does return true and the previous selected does say false, but on the website the item doesn't change/update.</p>
  
  <p>Any help is greatly appreciated.</p>