Ryan Rose wrote:
Jörn,
How can I force the new validation plugin to ignore form elements with
display: none?
I modified the previous release this way:
validator.elements =
this.find(":input:not(:submit):not(:reset):visible").focus(function() {
validator.lastActive = this;
});
Try this, less obtrusive:
var validator = $("#myform").validate();
validator.elements = validator.elements.filter(":visible");
No need to modify the plugin file itself. Please let me know if that
works for you.
--
Jörn Zaefferer
http://bassistance.de