This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Checkbox triger another checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Checkbox triger another checkbox" Watch "Checkbox triger another checkbox" New topic
Author

Checkbox triger another checkbox

Phoebe Song
Ranch Hand

Joined: Jan 17, 2002
Posts: 54
Hi All,

I have a table contains 3 checkboxes. The last two boxes are disabled. You need check the first one to enable the other two. Here is the code for the first checkbox, how can I use javascript to enable the other two? any events can do that? how can I use name property since it is a jsp varible?
<%
for(int i = 0;i<aList.size();i++){
java code here

%>
<td><INPUT type="checkbox" name=<%="isselected"+i%> ></td>

Thank you for your help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checkbox triger another checkbox
 
Similar Threads
How to enable checkbox when checked in other checkbox dynamically
Need Help with Jquery Selector logic
Need Help with binding click events to table rows
How to get Names of selected checkboxes?
geting focus on radio button