title: Selecting a dropdown option from webbrowser
body: <p>My goal I need to select the second option.</p>
  
  <p>I've tried following approach and can't set selected value. No error shows up, the selection just doesn't happen.  Being very familiar with HTML myself, I know that "selected" and 'selected="selected"' work but not sure why it's not working with my C# code. What could be wrong?</p>
  
  <pre><code>webBrowser1.Document.GetElementById("field_gender1").
         Children[1].SetAttribute("selected", "selected");
  </code></pre>
  
  <p>The HTML is</p>
  
  <pre><code>&lt;select name="gender1" id="field_gender1" class="select"&gt;
          &lt;option selected="selected" value="1"&gt;val1&lt;/option&gt;
          &lt;option value="2"&gt;val2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>