title: How to pass form field value to java function on submit of form?
body: <p>Here is my form:</p>
  
  <pre><code>    &lt;form  id="aform"&gt;
      &lt;input type="text" id="rollno" name="rollno"&gt;
      &lt;input type="button" value="show result" onclick="showResultFunction ('someurl.com','divtodisplayresult');&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p><strong>Question:</strong>
  Can I pass rollno entered in the function onclick as parameter? Like:</p>
  
  <pre><code>    onclick="showResultFunction ('someurl.com','divtodisplayresult',rollno);
  </code></pre>