views:

23

answers:

1

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