Ive been using jquery to do this, but now I need to do it with Prototype and Im little confused due lack of documentation
I have 2 lists of check boxes
First List:
Check box 1
Check box 2
Second list:
Check box x
check box y
check box z
I need the JS code, using prototype to work like this: Second list, remains disabled unless I check one of the checkboxes of the First List.
Any suggestions?
Here’s the JavaScript code:
Based on this HTML:
Add this CSS:
The documentation for Prototype is very good. Here’s the methods I’m using:
For those of you interested in how this can be done in jQuery: