What kind of jquery validation rule would you use to specify that if a particular checkbox (say, for example, checkbox1) is checked, a particular textarea (say, for example, textbox1) must have a non-blank value?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
requiredrule can be used with a dependency expression, as outlined in the documentation:Example: http://jsfiddle.net/andrewwhitaker/y8qhv/