File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes generate checkboxes with increasing values , by clicking a button Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "generate checkboxes with increasing values , by clicking a button" Watch "generate checkboxes with increasing values , by clicking a button" New topic
Author

generate checkboxes with increasing values , by clicking a button

Chandhrasekar Saravanan
Ranch Hand

Joined: Jun 16, 2002
Posts: 57
Hi,
There is a form which contains a button.whenever i click this button i need to generate checkboxes with values in it.
for example if i click the button once, i should get a checkbox with value 1 , if i click the button second time, i should get a checkbox with value 2 in it. also the checkbox with value 1 should also be present. this seems to be complicated. please help.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
here is a basic idea how to do it, you can do it with a node method, but it is a little harder to get to work. I can make it so the checked ones are not lost when added. See if this works
Eric
 
 
subject: generate checkboxes with increasing values , by clicking a button
 
Threads others viewed
to pass variable to servlet from html
generating textfields when i click a button
[AJAX] Getting values of checked checkboxes in form
html:checkbox
Struts : checkbox status is unchanged if i use back button and uncheck it
MyEclipse, The Clear Choice