开发者

Need Help For Validation Engine

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜