我试图在页面上运行jQuery文件,但它没有响应。我试图验证email
输入字段。
段:
$(document).ready(function() {
$("#test").validate({
rules: {
"email": {
required: true
}
},
messages: {
"email": {
required: "Enter enter valid email address",
}
}
});
});

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<form name="test" method="post">
email:<input type="email" name="email" id="email">
<input type="submit" value="submit">
</form>
&#13;