I want to hide a span when the validation raised
A:
I imagine you mean when validation is unsuccessful. You can do something like
formQueryObj.submit(function () {
var f = $(this).valid();
if (f === true) {
...
return true;
}
else{
...your hide span code like $('span#spanid').hide();
return false;
});
Mauro
2010-08-11 10:03:00