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);
});
精彩评论