Form dependency manager javascript

Posted by user225269 on Stack Overflow See other posts from Stack Overflow or by user225269
Published on 2010-04-27T12:51:23Z Indexed on 2010/04/27 22:53 UTC
Read the original article Hit count: 274

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about html

Related posts about JavaScript