JQuery Validation Plugin Question -


i have seen several other posts similar questions nothing need do. need have 3 checkboxes same name different id's. when checkbox 1 clicked either 2 or 3 (either one) required. if first checkbox not clicked none required. closest example of saw not 100% there:

jquery validation rules

any appreciated.

i found answer. extremely on thinking this. @ least 2 supposed required simple statement needed:

{ required: true, minlength:2 }

which found here:

jquery validate plugin minimum of 2 elements single array name

and added message:

messages: {     fieldname: {         required:"must select @ least 2 of 3 below options",         minlength: jquery.format("must select @ least 2 of 3 below options")     }  

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -