0

I'm getting this error whenever I try to run the jQuery Validation plugin. I have looked at every other question on stack or GitHub I could find and none seem to have the exact same issue. I import jQuery and the Validate in the correct order with:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.1/jquery.validate.min.js"></script>

I checked and they get correctly and fully loaded in the browser network tab. Even with the most basic code (the form with id='project_form' exists):

$(document).ready(function() {
  $("#project_form").validate({
     debug:true
  });
});`

the validate function doesn't work and results in the jQuery.Deferred exception: $(...).validate is not a function warning and Uncaught TypeError: $(...).validate is not a function error.

Where could the error be?

1
  • Please use the search function before posting a new question. Thanks. Commented Sep 16, 2019 at 15:37

1 Answer 1

0

Hello this error may be come because of more than one js load so kindly check , if not more than one js load in the page So it happens because of jquery version 3.X.X(you are using 3.4.1) so please use any other version of jquery , it will resolve your problem thank you

Sign up to request clarification or add additional context in comments.

2 Comments

Oh, I didn't notice because jQuery was was also included in my app.js. Thank you for the tip.
always welcome:)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.