jQuery.Deferred exception: $(…).validate is not a function TypeError: $(…).validate is not a function

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



jQuery.Deferred exception: $(…).validate is not a function TypeError: $(…).validate is not a function



I have included


<script src="../JqueryValidation/lib/jquery.js"></script>
<script src="../JqueryValidation/dist/jquery.validate.js"></script>
<script>
$().ready(function()
// validate the comment form when it is submitted
$("#commentForm").validate();
);
</script>



I opened chrome->sources. All files are loaded. There is no 404 error. That means jquery.validate.js is loaded. But its still throwing error



Uncaught TypeError: $(...).validate is not a function



I have a demo file in JqueryValidation/demo/index.html that is working fine but in my file code is not working.


JqueryValidation/demo/index.html





you forgot the jquery library?
– madalinivascu
Aug 13 at 8:37





$(document).ready(function() not $().ready(function()
– madalinivascu
Aug 13 at 8:37


$(document).ready(function()


$().ready(function()





that is autloading by JqueryValidation/lib/jquery.js
– Curious
Aug 13 at 8:37





@peeebeee can you explain why, i have never seen that syntax
– madalinivascu
Aug 13 at 8:47





@peeebeee Thanks. I'll stick to the less vague (and less ugly) preferred version though :)
– Archer
Aug 13 at 8:52









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS