Form dependency manager javascript
- by user225269
Need help in form dependency manager javascript:
As you can see the checkbox below depends on either of the two criteria (the info=student or the info=all). I've come up with the code below based on this:
DEPENDS ON name [BEING value] [OR name [BEING value]]
CONFLICTS WITH name [BEING value]
from this site: http://www.dynamicdrive.com/dynamicindex16/formdependency.htm
Here's the code:
<tr>
<td>
<input type="hidden" name="yr">
<label> <input type="checkbox" name="yr" value="year" class="DEPENDS ON info BEING student OR info BEING all"> Year</label>
</td>
</tr>
EDIT
What do I do?It doesn't work. When I change this: DEPENDS ON info BEING student
Into this: DEPENDS ON info BEING student OR info BEING all
The checkbox which depends on the radio button to be clicked first before it shows up. Will show up before any of the radio buttons( student, all) will be clicked.