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