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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

為什么實(shí)現(xiàn)不了確認(rèn)密碼,而有錯(cuò)誤提示,求告知

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>jQuery Validation ?插件</title>

<link rel="stylesheet" href="style.css">>

</head>

<body>

<form id="demoForm">

<fieldset>

<legend>用戶登錄</legend>

<p>

<label for="username">用戶名</label>

<input type="text" name="username1" id="username"/>

</p>


<p>

<label for="password">密碼</label>

<input type="password" id="password" name="password1">

</p>


<p>

<label for="confirm-password">確認(rèn)密碼</label>

<input type="password" id="confirm-password" name="confirm-password1">

</p>


<p>

<input type="submit" name="登錄"/>

</p>

</fieldset>

</form>


<script src="file:///C|/Users/Administrator/Desktop/jQuery實(shí)驗(yàn)/用戶登錄/vendor/jquery-1.10.0.js"></script>

<script src="file:///C|/Users/Administrator/Desktop/jQuery實(shí)驗(yàn)/用戶登錄/vendor/jquery.validate-1.13.1.js"></script>

<script>

$(document).ready(function(){


$("#demoForm").validate({

debug:true,

rules:{

username1:{

required:true,

//minlength:2,

//maxlength:10,

//rangelength:[2,10],

//digits:true


//遠(yuǎn)程校驗(yàn)

/*remote:{

url:"remote.json",

type:"post",

data:{

loginTime:function(){

return +new Date;

}

}

}*/

},

password1:{

required:true,

minlength:2,

maxlength:16

},


//確認(rèn)密碼

"confirm-password1":{

equalTo:"#password1"

}

},


//信息提示

messages:{

username1:{

required:"必需填寫用戶名",

minlength:"用戶名最少為2位",

maxlength:"用戶名最多為10位",

remote:"用戶名不存在",

rangelength:"用戶名應(yīng)該在2-10位"

},

password1:{

required:"必需填寫密碼",

minlength:"密碼最少為2位",

maxlength:"密碼最多為16位"

}


"confirm-password1":{

equalTo:"兩次輸入的密碼不一致"

}

}

});

? });

</script>

</body>

</html>


正在回答

1 回答

password1:{
required:"必需填寫密碼",
minlength:"密碼最少為2位",
maxlength:"密碼最多為16位"
},?
//上一行缺少了一個(gè)逗號(hào),應(yīng)該就只有這個(gè)錯(cuò)誤,其他的驗(yàn)證沒(méi)有問(wèn)題。
"confirm-password1":{
equalTo:"兩次輸入的密碼不一致"
}


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

為什么實(shí)現(xiàn)不了確認(rèn)密碼,而有錯(cuò)誤提示,求告知

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

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

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