jQuery验证不在服务器中工作!在当地工作。为什么? [英] jQuery Validation not working in server! Works Locally. Why?
问题描述
当我在本地尝试jQuery验证时,它工作正常。但是,当我上传到我的服务器验证不起作用。该页面只是简单地重新加载。为什么会这样?
这里是小提琴。
http://jsfiddle.net/anish/Q9qes/3/
在JSFiddle的管理资源下,您的链接到jQuery Validation插件提供了404错误。也许这就是为什么它不能在你的服务器上工作。
编辑:
不是< / input>
这样的标签。删除这些。
也许运行您的HTML& CSS通过验证器。
另外,版本你的jQuery Validation插件与你的jQuery版本不兼容。
When I tried jQuery validation locally it works fine. But when I upload to my server the validation is not working. The page just simply reloads. Why is it so?
Here is the fiddle.
http://jsfiddle.net/anish/Q9qes/3/
In your JSFiddle, under Manage Resources, your link to the jQuery Validation plugin is giving a 404 error. Maybe that's why it's not working on your server.
EDIT:
There is no such tag as </input>
. Remove those.
Perhaps run your HTML & CSS through a validator.
Also, the version of your jQuery Validation plugin is not up to date with your jQuery version.
这篇关于jQuery验证不在服务器中工作!在当地工作。为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!