Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checkbox triger another checkbox

 
Phoebe Song
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic