View Single Post
Old 09-15-2012, 09:08 PM   PM User | #1
robincham
New to the CF scene

 
Join Date: Sep 2012
Location: Montana, USA
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
robincham is an unknown quantity at this point
jQuery validation rules, conditional

My form contains a label with 2 checkbox inputs (id=name, name = memtype), one of which is 'guide'. I have memtype required in validation rules with an appropriate message for failing to check a box.

I also have another text input (id=sponout, name=sponout) that MUST be filled in IF memtype = 'guide'. How may I set a rule for this 'if condition' so that if a user checks memtype 'guide', but don't enter text in sponout, they receive an error message?
robincham is offline   Reply With Quote