I need a way to make a field required based on some other condition. 
Consider the case of a multi-select for "Job Type":  

Baker
Janitor
Fisherman
...
Other (please describe)

If someone selects "other" the description field should be required,
otherwise it's hidden.

{required:function(){return some code that returns true or false}} should
work.

On that note, what happens if you have spaces in the function ( and you must
in most cases ) and this metadata block resides in a class attribute? 
Expandos are your friend...
-- 
View this message in context: 
http://www.nabble.com/Conditional-validation---validator-plugin.-tf3349703.html#a9314278
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to