title: How do I disable TextBox using JavaScript?
body: <p>earlier I asked for help disabling a Button when a drop down menu item was selected. I was given some code that did the trick but now I need the same with a Textbox and for some odd reason its not working can you have a look for me...</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form id="frmColor"&gt;
      &lt;input type='TextBox' id='color' /&gt;
      &lt;input type='submit' value='Change Color' id="colorSubmit"/&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>  tools.eraser = function () {
      var tool = this;
      this.started = false;
      var varPenColor = "White";
      context.strokeStyle = varPenColor;
      document.getElementById('frmColor').colorSubmit.disabled=true;
      document.getElementById('frmColor').color.disabled=true;
  </code></pre>
  
  <p>Any ideas why it wont disable the text box?</p>
  
  <p>Thanks</p>