title: Set the value of a drop down box on load
body: <p>If you look at the source code for the html you can see the combobox has an id. However when i run a loop through all hte elements on the page in vb.net it comes up as a blank instead of the id thats clearly defined. I'm thinking it has something to do with the javascript giving it a dynamic id. Anyway. I need to set this box after the page has loaded in a webbrowser object. Please help. Its driving me crazy!</p>
  
  <pre><code>&lt;input type="hidden" name="wlw-select_key:{actionForm.dobMonth}OldValue" value="true"&gt;"
  &lt;select name="wlw-select_key:{actionForm.dobMonth}" id="dobMonth" class="dobMonth"&gt;&lt;option" value=""&gt;Month&lt;/option&gt;
      &lt;option value="01"&gt;January&lt;/option&gt;
      &lt;option value="02"&gt;February&lt;/option&gt;
      &lt;option value="03"&gt;March&lt;/option&gt;
      &lt;option value="04"&gt;April&lt;/option&gt;
      &lt;option value="05"&gt;May&lt;/option&gt;
      &lt;option value="06"&gt;June&lt;/option&gt;
      &lt;option value="07"&gt;July&lt;/option&gt;
      &lt;option value="08"&gt;August&lt;/option&gt;
      &lt;option value="09"&gt;September&lt;/option&gt;
      &lt;option value="10"&gt;October&lt;/option&gt;
      &lt;option value="11"&gt;November&lt;/option&gt;
      &lt;option value="12"&gt;December&lt;/option&gt;&lt;/select&gt;
  &lt;script language="JavaScript" type="text/JavaScript"&gt; 
  &lt;!--
  netui_tagIdNameMap.dobMonth="wlw-select_key:{actionForm.dobMonth}"
  --&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>*<strong><em>My Source Code Attemps *</em>**</strong>
  WebBrowser1.Document.GetElementById("dobMonth").SetAttribute("selectedtext", "March") - dosent work</p>
  
  <pre><code>    Dim el As HtmlElement = WebBrowser1.Document.All("wlw-select_key:{actionForm.dobMonth}")
      Dim elCol As HtmlElementCollection = el.GetElementsByTagName("option")
      Dim X As Integer = 0
      For Each op As HtmlElement In elCol
          If op.InnerText = "March?" Then
              el.SetAttribute("selectedIndex", X.ToString())
              Exit For
          End If
          X += 1
      Next
  </code></pre>
  
  <ul>
  <li>that didnt work either</li>
  </ul>
  
  <p>So i'm really out of options. Any ideas. I did some research on the javascript reference but didnt turn out much useful. Thanks in advance!</p>