Trying to Do form validation using Jquery. When I click submit, my page reloads and the form entry is never checked. I have been hacking at this for hours. Any help appreciated.
Here is my Html Page:
it won't let me post the code, says I need to space with 4 spaces??
我的链接在这里…链接到我的航班输入验证页面
将这行放在HTML的最后。
<script src="http://sotd.us/jared_freese/NodeJS/flightscript.js"></script>
。
<script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="http://sotd.us/jared_freese/NodeJS/jquery.validate.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js"></script>
<script src="http://sotd.us/jared_freese/NodeJS/flightscript.js"></script>
在脚本中使用第三方库之前,应该先加载第三方库。
浏览器按顺序加载遇到的所有脚本。