title: How do you click a label in a form in mechanize?
body: <pre><code>&lt;p class="field switch"&gt;
              &lt;label id="on" class="cb-enable"&gt;&lt;span&gt;On&lt;/span&gt;&lt;/label&gt;
              &lt;label id="off" class="cb-disable selected"&gt;&lt;span&gt;Off&lt;/span&gt;&lt;/label&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>Any idea how I can click the label with id="on"? It's a switch that I want to switch from off to on, by clicking the "on" label.</p>
  
  <p>Things I've tried:</p>
  
  <pre><code>br.form.get(label="On").click()
  br.form.find_control(id="on").click()
  </code></pre>
  
  <p>Documentation: <a href="http://wwwsearch.sourceforge.net/mechanize/forms.html" rel="nofollow">http://wwwsearch.sourceforge.net/mechanize/forms.html</a></p>
  
  <p>Any ideas?</p>