title: Using Javascript to hide textfields
body: <p>If a user selects a certain <code>option value</code> in one <code>select</code> field, how do you then make a text field <code>hidden</code>, s it will not be needed. This must be done before the form is submitted? </p>
  
  <p>For example in the following select field, a user select chooses <code>value='a'</code> then how would this text field become hidden:</p>
  
  <pre><code>     &lt;select name="form" id="aForm"&gt;
          &lt;option value="a"&gt;choice1&lt;/option&gt;
          &lt;option value="b"&gt;choice2&lt;/option&gt;
          &lt;option value="c"&gt;choice3&lt;/option&gt;
       &lt;/select&gt;
  
       &lt;input type="text" style="width:285px" name="textField" id="textField"/&gt;
  </code></pre>