Daemach,
Wait for the next release for Jorn's Form Validation plugin. Could be a conditional validation to help us, yeahhh Jorn??? ;-)
Cheers
<div><span class="gmail_quote">2007/3/5, Daemach <<a href="mailto:jquery@tinaja.mailshell.com">
jquery@tinaja.mailshell.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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: <a href="http://www.nabble.com/Conditional-validation---validator-plugin.-tf3349703.html#a9314278">
http://www.nabble.com/Conditional-validation---validator-plugin.-tf3349703.html#a9314278</a>
Sent from the JQuery mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.
_______________________________________________
jQuery mailing list
<a href="mailto:discuss@jquery.com">
discuss@jquery.com</a>
<a href="http://jquery.com/discuss/">
http://jquery.com/discuss/</a></blockquote></div>
_______________________________________________
jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/