[jQuery] the Return of "Validation Plugin - hows to only fire on form submit? "

[jQuery] the Return of "Validation Plugin - hows to only fire on form submit? "


Hi,
I find an old post :
http://groups.google.com/group/jquery-en/browse_thread/thread/cf34a35e202d9707/4fb5e88f4c81127a?lnk=gst&q=fire+submit#
which use this method to show error only on sbumit :
var validator = $("form").validate(
{
onblur: function(){},
onkeyup: function(el)
{
if(validator.check(el))
$
(el).removeClass(validator.settings.errorClass);
else
$(el).addClass(validator.settings.errorClass);
},
showErrors: function(errors)
{
alert("should only fire on submit");
}
});
Is there a way to do this in validate plugin 1.2.1 ?