开发者

How do I stop jQuery validate from validating automatically?

I have a textbox on which I have made an onblur script that takes the input and converts it into a date. I'm using jQuery validate-plugin to valida开发者_如何学Cte the input, but the problem is that the input from the user is often not valid until I've parsed it, which makes the automatic validation that jQuery validation makes, both redundant and unwanted.

How can I stop jQuery validate from validating automatically so I can run it only on demand?


$('#aspnetForm').validate({
       onfocusout: false,
       onkeyup: false,
       onclick: false
});


From the Validate options page:

Disables onblur validation.

$(".selector").validate({
   onfocusout: false
})
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜