第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

無法實現(xiàn)自動校驗

<!DOCTYPE html>
<html lang="en">
<head>
? ?<meta charset="UTF-8">
? ?<title></title>
? ?<style>
*{ margin: 0; ?padding: 0;}
? ? ? fieldset {
? ? ? ? ? ?margin: 100px auto;
height: 200px;
width: 300px;
}
? ?</style>
? ?<script src="jquery-1.11.1.min.js"></script>
? ?<script src="jquery.validate-1.13.1.js"></script>
? ?<script>
$(function(){
? ? ? ? ? ?$("#formDemo").validate({
? ? ? ? ? ? ? rules:{
? ? ? ? ? ? ? ? ? username:{
? ? ? ? ? ? ? ? ? ? ? require:true,
minlength:2,
maxlength:10
},
password:{
? ? ? ? ? ? ? ? ? ? ? require:true,
minlength:2,
maxlength:16
}
? ? ? ? ? ? ? },
message:{
? ? ? ? ? ? ? ? ? ?username:{
? ? ? ? ? ? ? ? ? ? ? ?require:"必須填寫用戶名",
minlength:"用戶名最少為2位",
maxlength:"用戶名最大為10位"
},
password:{
? ? ? ? ? ? ? ? ? ? ? ?require:"必須填寫密碼",
minlength:"密碼最少為2位",
maxlength:"密碼最大為16為"
}
? ? ? ? ? ? ? ?}
? ? ? ? ? ?});
});

</script>
</head>
<body>
<form action="" id="formDemo">
<fieldset>
? ?<legend>用戶登錄</legend>
? ?<p><label for="username">用戶名:</label><input type="text" name="username" id="username"/></p><br>
? ?<p><label for="password">密碼:</label><input type="password" name="password" id="password"/></p><br/>
? ?<input type="submit" value="提交"/>
</fieldset>
</form>
</body>
</html>

正在回答

1 回答

你沒有下載相應的validate插件吧,?? <script src="jquery-1.11.1.min.js"></script>
? ?<script src="jquery.validate-1.13.1.js"></script>

0 回復 有任何疑惑可以回復我~
#1

嗚拉巴哈哈 提問者

下載了
2016-11-07 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

無法實現(xiàn)自動校驗

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號