Tuesday, January 27, 2015

I have three checkboxes that are validated to make sure at least ONE is selected when the user submits.

Hi All,


I have three checkboxes that are validated to make sure at least ONE is selected when the user submits.

This is what I would like to do:


don't make any validation on 1st check box


If the 2nd is checked, I have a description text box that I would like to become mandatory.


If the 3rd is checked, I have a description text box that I would like to become mandatory.


If 2nd and 3rd are both checked, I have a description text box that I would like to become mandatory.


Here is the the validation script I have used to make sure that at least one of those CHECKBOXES has been checked.


I want to implement the same in jquery.


No comments:

Post a Comment