title: Get value from html textbox with javascript
body: <p>I have created an ASP.NET MVC app and would like to do some "stuff" with a value in the textbox before its sent back to the controller. </p>
  
  <p>So I have a textbox in a form: </p>
  
  <pre><code>using (Html.BeginForm("HandleForm","Home")
  {
      &lt;p&gt;Enter Value&lt;p&gt;
      @Html.TextBox("amount")
      &lt;input type="submit" value="Submit" /&gt;
  }
  </code></pre>
  
  <p>normally i would use something like this in JS:</p>
  
  <pre><code>var value = document.getElementById(ID).value;
  </code></pre>
  
  <p>So how would I do this with the HTML Helpers? is it possible to give this textbox an id?</p>