开发者

Need Help For Validation Engine

开发者 https://www.devze.com 2023-03-13 17:15 出处:网络
I am using jQuery validation engine on a Textbox fo开发者_如何学JAVAr Validation. When a user clicks submit without actually submitting data, an error shows up. The problem is that if a user accidentl

I am using jQuery validation engine on a Textbox fo开发者_如何学JAVAr Validation. When a user clicks submit without actually submitting data, an error shows up. The problem is that if a user accidently clicks on that textbox and then clicks on any other place on the site an error shows and remains showing until the users refreshs the page. I am using ASP.net MVC 3.

Can anyone show me the way to let the error disappear after 10 seconds?


i didnt understand your problem much but you can do this

jQuery('.text-box').bind('blur',function(){
          var e=$(this);
          window.setTimeout(function(){
                e.closest('.field-validation-error').hide();
          },10000);
});
0

精彩评论

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