Web Specialist wrote:
Hi all

I have a dependent validation routine with Jorn Validation Form plugin. Works like a charm. But I need to validate dependent fields when a select field option is "selected".

Looks like

wife:{required: function() {return $("[EMAIL PROTECTED]'maried_single']").filter('[EMAIL PROTECTED]').val() == "1";}},
Have you tried this?

wife: {
        required: "select [EMAIL PROTECTED]'maried_single']:selected"
}

That would make the wife-field required when the option with value 'maried_single' is selected. Not quite what your example includes, but seems to make a bit more sense.

--
Jörn Zaefferer

http://bassistance.de

Reply via email to