Skip to content Skip to sidebar Skip to footer

JQuery Validate: Uncaught TypeError: $(...)."valid Is Not A Function" With Valid References/order

I'm getting the error message 'Uncaught TypeError: $(...).valid is not a function' when attempting to call... javascript $('input[data-val=true]').on('blur', function() { $(thi

Solution 1:

In order to use the jQuery form validation plugin, you need to set it up on your form first. The documentation gives a few examples of this, but basically you need to select the form and run the .validate() function.

var form = $( "#myform" );
form.validate();

Obviously you don't have a form element, so this is something you will need to add.


Post a Comment for "JQuery Validate: Uncaught TypeError: $(...)."valid Is Not A Function" With Valid References/order"