title: Setting a Select control in a form with Mechanize using Python
body: <p>I'm trying to use mechanize to select a form</p>
  
  <pre><code>browser.select_form('frmChangeLanguage')
  </code></pre>
  
  <p>.. got that.</p>
  
  <p>But I'm struggling with changing a drop down box within the form and then submitting the form with the new value. The control looks like this:</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;
  &lt;td&gt;
  &lt;select id="controlID" class="select" name="selectLang"&gt;
  &lt;option value='4' selected&gt;en&lt;/option&gt;
  &lt;option value='1' &gt;fr&lt;/option&gt;
  &lt;option value='2' &gt;hk&lt;/option&gt;
  &lt;/select&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;input type="submit" name="button" id="button" value="Submit"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I'm currently doing:</p>
  
  <pre><code>control = browser.form.controls[0]
  control._value = 1    
  browser.submit(name='button')
  </code></pre>
  
  <p>but this doesn't seem to be working. Any ideas?
  I'm using Python 2.7 with Mechanize installed on Windows.</p>