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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

急急急?。?!關(guān)于jQuery插件validate的問(wèn)題,下面一段代碼,當(dāng)輸入不正確的信息為什么沒(méi)有提示?

急急急?。?!關(guān)于jQuery插件validate的問(wèn)題,下面一段代碼,當(dāng)輸入不正確的信息為什么沒(méi)有提示?

IT菜_鳥 2016-04-14 20:51:37
<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>表單驗(yàn)證</title> <style type="text/css"> body{margin: 0;padding: 0} form{margin: 50px 100px;height: auto;} legend{font-size: 24px;font-weight: bold} p label{font-size: 18px;font-family: 微軟雅黑;display: inline-block;width: 80px;} p input{width: 140px;height: 20px;line-height: 20px;font-size: 16px} #sub{width: 80px;height: 30px;} form p:last-child{margin-left: 80px;margin-bottom: 10px} </style> <script src="jquery.validate-1.13.1.js"></script> <script src="jquery-1.11.3.min.js"></script> <script type="text/javascript"> $(function(){ validator = $("#demoForm").validate({ rules: {? ? ? ? ? ? ? ? username: {? ? ? ? ? ? ? ? ? ? required: true,? ? ? ? ? ? ? ? ? ? minlength: 2,? ? ? ? ? ? ? ? ? ? maxlength: 10? ? ? ? ? ? ? ? },? ? ? ? ? ? ? ? password: {? ? ? ? ? ? ? ? ? ? required: true,? ? ? ? ? ? ? ? ? ? minlength: 2,? ? ? ? ? ? ? ? ? ? maxlength: 16? ? ? ? ? ? ? ? },? ? ? ? ? ? ? ? "confirm-password": {? ? ? ? ? ? ? ? ? ? equalTo: "#password";? ? ? ? ? ? ? ? }? ? ? ? ? ? },? ? ? ? ? ? messages: {? ? ? ? ? ? ? ? username: {? ? ? ? ? ? ? ? ? ? required: '請(qǐng)輸入用戶名',? ? ? ? ? ? ? ? ? ? minlength: '用戶名不能小于2個(gè)字符',? ? ? ? ? ? ? ? ? ? maxlength: '用戶名不能超過(guò)10個(gè)字符',? ? ? ? ? ? ? ? },? ? ? ? ? ? ? ? password: {? ? ? ? ? ? ? ? ? ? required: '請(qǐng)輸入密碼',? ? ? ? ? ? ? ? ? ? minlength: '密碼不能小于2個(gè)字符',? ? ? ? ? ? ? ? ? ? maxlength: '密碼不能超過(guò)16個(gè)字符'? ? ? ? ? ? ? ? },? ? ? ? ? ? ? ? "confirm-password": {? ? ? ? ? ? ? ? ? ? equalTo: "兩次輸入密碼不一致"? ? ? ? ? ? ? ? }? ? ? ? ? ? } }) }) </script></head><body> <form id="demoForm"> <fieldset> <legend>會(huì)員登錄</legend> <p id="info"></p> <p> <label for="username">用戶名:</label> <input type="text" name="username" id="user"> </p> <p> <label for="password">密&nbsp;&nbsp;碼:</label> <input type="password" name="password" id="psd"> </p> <p> <label for="confirm-password">確認(rèn)密碼:</label> <input type="password" name="confirm-password" id="conf"> </p> <p> <input type="submit" ?id="sub" name="submit" value="提交"> </p> </fieldset> </form> </body></html>
查看完整描述

1 回答

已采納
?
一米一一3192659

TA貢獻(xiàn)4條經(jīng)驗(yàn) 獲得超6個(gè)贊

<label for="password">密&nbsp;&nbsp;碼:</label>

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

</p>

<p>

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

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


equalTo: "#password"; ?應(yīng)該是?equalTo: "#psd";


查看完整回答
反對(duì) 回復(fù) 2016-04-14
  • IT菜_鳥
    IT菜_鳥
    我修改了,還是不行啊
  • 一米一一3192659
    一米一一3192659
    <script src="jquery.validate-1.13.1.js"></script> <script src="jquery-1.11.3.min.js"></script> 這兩個(gè) 引入順序不對(duì),把下邊的放上邊jquery我都用1.9的了....你這換換吧... 反正不管版本,這倆順序不對(duì),你緩過(guò)來(lái)試試
  • IT菜_鳥
    IT菜_鳥
    恩恩,jquery的版本太低了,我換了更高級(jí)的版本果然有用,謝謝
  • 1 回答
  • 0 關(guān)注
  • 1491 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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