title: How to pass input value from one form to another form at same jsp page?
body: <p>I have two <strong>forms</strong> in my jsp page, first form have input values and second form have submit button,
  i can't use both in same form because of some issue. now i want to access <strong>first form</strong> value into <strong>second form</strong>.</p>
  
  <p>My Sample Code is Here,</p>
  
  <pre><code>&lt;form name="onchange" id="first"&gt;
  &lt;div&gt;&lt;input type="text" name="n1"&gt;&lt;/div&gt;
  &lt;select onchange="document.forms['onchange'].submit();" name="select"&gt;
  &lt;option value="A"&gt;A&lt;/option&gt;
  &lt;option value="A"&gt;A&lt;/option&gt;
  &lt;/form&gt;
  
  &lt;form action="servlet" id="second"&gt;
  &lt;input type="submit" name="sub" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I need to access a first form value to second form on <strong>submit.</strong> is it any way to access? Thank You.</p>