title: Extract submit button value using jsoup
body: <p>I have used HTTPClient to connect to a website and I can successfully access required data from the website using jsoup.
  I have the following code from which I need to extract the submit button info.</p>
  
  <pre><code>&lt;form method="POST" action="test.jsp" &gt;
           &lt;font size="2"&gt;
           &lt;input type="hidden" name="num" id="num" value=123 &gt;
           &lt;input type="hidden" name="iec" id="iec" value=456 &gt;
           &lt;input type="submit" onclick=" return check();" value="Print" name="B1"&gt;
           &lt;/font&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>How can I access the value and name of the submit button?</p>