title: How to change the value of an asp:textbox from javascript
body: <p>I have an asp:textbox</p>
  
  <pre><code>&lt;asp:textbox ID="NewName" runat="server" /&gt;
  </code></pre>
  
  <p>and when a user clicks the "Cancel" button, I want to erase whatever is in that text box by making the value just be "".  If it were a an input field of type text, I could just do this in javascript:</p>
  
  <pre><code>document.getElementById('NewName').value= "";
  </code></pre>
  
  <p>But I can't just do this because it is an asp:textbox.  </p>