Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用jQuery实时验证注册表_Jquery_Jquery Ui - Fatal编程技术网

使用jQuery实时验证注册表

使用jQuery实时验证注册表,jquery,jquery-ui,Jquery,Jquery Ui,这是我的jQuery课程中的一个项目。它似乎无法验证。我在提交时没有收到任何实时回复。这个项目使用了jQueryUI。提前谢谢 html: <html> <head> <link type="text/css" href="general.css" rel="stylesheet"/> <link type="text/css" href="jqueryui/css/ui-lightness/jquery-ui-1.8.15.custom.css"

这是我的jQuery课程中的一个项目。它似乎无法验证。我在提交时没有收到任何实时回复。这个项目使用了jQueryUI。提前谢谢

html:

<html>
<head>  
<link type="text/css" href="general.css" rel="stylesheet"/>
<link type="text/css" href="jqueryui/css/ui-lightness/jquery-ui-1.8.15.custom.css" rel="stylesheet" />  
<script type="text/javascript" src="jqueryui/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jqueryui/js/jquery-ui-1.8.15.custom.min.js"></script>
<script type="text/javascript" src="validationtest.js"></script>


</head>
<body>
<div id="switcher"></div><p>

<input type="button" id="clickform" value="Register" />

<div id="container">

    <form id="customForm">
        <div>
            <label for="name">Name</label>
            <input id="name" name="name" type="text" />
                <span id="nameInfo">What's your name?</span>
        </div>
        <div>
            <label for="email">E-mail</label>
            <input id="email" name="email" type="text" />
            <span id="emailInfo">Valid E-mail please, you will need it to log in!                    </span>
        </div>
        <div>
            <label for="pass1">Password</label>
            <input id="pass1" name="pass1" type="password" />
            <span id="pass1Info">At least 5 characters: letters, numbers and '_'</span>
        </div>
        <div>
            <label for="pass2">Confirm Password</label>
            <input id="pass2" name="pass2" type="password" />
            <span id="pass2Info">Confirm password</span>
        </div>
        <div>
            <br /><input id="send" name="send" type="button" value="Send" />
        </div>
    </form>
</div>


</body>
</html>

可以在此处找到Validation.js脚本

您确定JS文件加载正确吗?如果您转到源代码并单击valifationtest.JS,它会打开吗?检查chrome或firefox上的元素以确保文件已加载。是的,它确实打开了。但我非常怀疑它是否能被执行。如果内存可用,就不应该将$document.readyfunction放在javascript文件中。非常感谢,我用jQuerydocument替换了$document。它起作用了。