开发者

how to hide any page element with mvc2 validation raising in asp.net

开发者 https://www.devze.com 2023-01-11 15:23 出处:网络
I want to hide a span whe开发者_运维知识库n the validation raisedI imagine you mean when validation is unsuccessful. You can do something like

I want to hide a span whe开发者_运维知识库n the validation raised


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;
        });
0

精彩评论

暂无评论...
验证码 换一张
取 消