Validate dependent select boxes with validate plugin
Hi, I'm trying to validate two dependent select lists using JQuery Search Plugin, without success.
The classes I've to transform in requested are sid_list1 and sid_list2.
Here's the script
-
| <script text= type='text/javascript'> |
|
var $j = jQuery.noConflict(); |
|
$j(document).ready(function () { |
|
|
|
$j("#XTspSearchForm132").validate({ |
|
// other rules and options, |
|
}); |
|
|
|
$j('.sid_list1').each(function () { |
|
$j(this).rules('add', { |
|
required: true, |
|
messages: { |
|
required: "your custom message" |
|
} |
|
}); |
|
}); |
|
|
|
$j('.sid_list2').each(function () { |
|
$j(this).rules('add', { |
|
required: true, |
|
messages: { |
|
required: "your custom message" |
|
} |
|
}); |
|
}); |
|
|
|
|
|
}); |
|
</script> |
Here's the error...
How can I do?
It works on for the forst class... if want to see the URL (and form) is
here, if you see a 404 error for a jquery library is all ok, it was loaded by a component and caused conflict with the other one, so i've to hide it!