mysql - Adding form fields using javascript in a jsp program? -
basically have javascript function allows user add forms he/she wishes. have couple of input fields , have no problem adding them. here code. <script> var counter = 1; function addinput(divname){ var newdiv = document.createelement('div'); newdiv.innerhtml = "<center><br><hr width='300'>\n\ control number: <br><input type='text' name='control_number'>\n\ date of pull out: <br><br><input type='date' name='pulloutdate'>\n\ \n\item description: <br><br> <select name='des'>\n\ \n\ <% while(rselectrecord.next()){ %> <option value="<%=rselectrecord.getstring("item_code")%>"><%=rselectrecord.getstring("item_code")%></option> <% } %> </center...