开发者

Jquery Validation Not working throwing error $.validation is undefinedj

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜