Form dependency manager
- 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>