开发者

Jquery Validation Not working throwing error $.validation is undefinedj

开发者 https://www.devze.com 2023-01-28 15:13 出处:网络
jQuery validation is working fine on my machine, when i pushed it to test server it won\'t it\'s throwing some errors which is kind of surprising.

jQuery validation is working fine on my machine, when i pushed it to test server it won't it's throwing some errors which is kind of surprising.

These are the errors I am getting:

$.validator is nu开发者_StackOverflow中文版ll or not an object...

I've never gotten this error before and it throwing an error when I declared a variable like var isValid.

I don't know what to do. I am doing the custom validation methods not in the document.ready(). Does this cause this error? I wonder because all jquery validations are passing and hitting the server side validations.


Almost always this type of $.<insert-function-here> is a path or typo error, jQuery cannot find the function. Check your includes and script for typos and verify the paths are correct.


I just found it...there is mismatching of version for validation plug in and jquery base file..i don't know how it is working on my machine..i don't know..I just changed my jquery file to 1.4.2 and validation plug in to latest one..and its working perfect...thanks for your reply.. –

0

精彩评论

暂无评论...
验证码 换一张
取 消