title: How to add a dropdown menu on clicking the button in jsp?
body: <p>I have a form with two buttons one should submit the form and other should add a dropdown menu each time I click it.(If I click it two times two dropdowns should appear).
  Here is my form:</p>
  
  <pre><code>&lt;form name="form1" action="anotherfile.jsp"&gt;
   &lt;input type="text" name="box1"&gt;
   &lt;input type="text" name="box2"&gt;
   &lt;input type="submit" name="Add_dropdown"&gt;     
   &lt;input type="submit" name="Submit_form"&gt;          
  &lt;/form&gt;
  </code></pre>