html - how to give different names to different checkboxes when checkboxes are created from while loop -


i creating checkboxes @ runtime, in while loop according amount of data coming database.
want know should write in attribute name give different name each checkbox. value, if want pass value of rs.getstring(1) using jsp.
here piece of code.

<%while(rs.next()) { %><tr><td align="center"><input type="checkbox" name="" value=""> <% for(int i=1;i<=5;i++) { %> <td align="center"> <%=rs.getstring(i)%> </td> <%}%> </tr> <%}%> 


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -