Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 validate 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?

like image 259
Cros Avatar asked May 02 '26 05:05

Cros


1 Answers

$('#aspnetForm').validate({
       onfocusout: false,
       onkeyup: false,
       onclick: false
});
like image 109
bcm Avatar answered May 03 '26 20:05

bcm