jzaefferer/jquery-validation — Issue #228: validating <select> problem
Author: Dzurillo
Created: 2011-10-14 15:50:00+00:00
State: open

Hello!

I have problem with validation elements in form.
I have some form with multiple selects:

--- Choose ---

One

Two

Three

--- Choose ---

Four

Five

Six

In ready() function I have:

var param = {
//debug: true,
submitHandler: function( form) {
$(form).ajaxSubmit( options);
},
errorClass: 'my_err',
errorElement: 'ins',
focusCleanup: true,
focusInvalid: false,
//onsubmit: false,
onkeyup: false,
rules: {}
};
$('#my_form').validate( param);

After loading document I can see in firebug that all selects have class 'valid' and I can submit form without choosing any category :(

It tested with version 1.9.0 and 1.8.1 of plugin (jquery 1.6.4)
Can you help me?

Thank you.