title: Calling javascript function with button and input from textbox
body: <p>I have a textbox and button in my page. I have several sets of the below for different purpose.</p>
  
  <pre><code>&lt;input type="text" id="new" name="new" value="1" /&gt;
  &lt;input type="button" value="Edit" onclick="compute(edit(xxx));" /&gt;
  </code></pre>
  
  <p>Upon clicking on the button, I want to call a javascript function which will take in the value input in the textbox. Now I am wondering how am I suppose to retrieve the value from the input 'new' and pass it the 'xxx' as argument?</p>