凤凰快三在线预测—官方网址22270.COM鈥攋Query Password Validation锛堝瘑鐮侀獙璇侊級

凤凰快三在线预测—官方网址22270.COM鈥攋Query Password Validation锛堝瘑鐮侀獙璇侊級鎻掍欢鎵╁睍浜 凤凰快三在线预测—官方网址22270.COM鈥攋Query Validate 鎻掍欢锛屾彁渚涗簡涓ょ缁勪欢锛
涓绉嶈瘎浠峰瘑鐮佺殑鐩稿叧鍥犵礌鐨勫姛鑳斤細姣斿澶у皬鍐欏瓧姣嶇殑娣峰悎鎯呭喌銆佸瓧绗︼紙鏁板瓧銆佺壒娈婂瓧绗︼級鐨勬贩鍚堟儏鍐点侀暱搴︺佷笌鐢ㄦ埛鍚嶇殑鐩镐技搴︼紙鍙夌殑锛夈
凤凰快三在线预测—官方网址22270.COM涓绉嶄娇鐢ㄨ瘎浠峰姛鑳芥樉绀哄瘑鐮佸己搴︾殑楠岃瘉鎻掍欢鑷畾涔夋柟娉曘傛樉绀虹殑鏂囨湰鍙互琚湰鍦板寲銆

鎮ㄥ彲浠ョ畝鍗曞湴鑷畾涔夊己搴︽樉绀虹殑澶栬銆佹湰鍦板寲娑堟伅鏄剧ず锛屽苟闆嗘垚鍒板凡鏈夌殑琛ㄥ崟涓

璇ユ彃浠剁洰鍓嶇増鏈槸 1.0.0銆

浣跨敤鏂瑰紡

濡傞渶浣跨敤 Password Validation锛堝瘑鐮侀獙璇侊級鎻掍欢锛岃娣诲姞涓涓 class "password" 鍒 input锛屽悓鏃舵坊鍔犳樉绀哄己搴︾殑鍩烘湰鏍囪鍦ㄨ〃鍗曠殑闇瑕佹樉绀虹殑鍦版柟锛

<form id="register">
    <label for="password">Password:</label>
    <input class="password" name="password" id="password" />
    <div class="password-meter">
        <div class="password-meter-message"> </div>
        <div class="password-meter-bg">
            <div class="password-meter-bar"></div>
        </div>
    </div>
</form>

瀵硅〃鍗曞簲鐢 Validate 鎻掍欢锛

$(document).ready(function() {
  $("#register").validate();
});

鎮ㄥ彲浠ラ噸杞 $.validator.passwordRating 瀹炵幇涓嶅悓鐨勮瘎浠锋柟娉曘傛垨鑰呴噸杞 $.validator.passwordRating.messages 鏉ユ彁渚涘叾浠栨秷鎭紝姣斿鏈湴鍖栥

瀹炰緥婕旂ず

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Makes "field" required to be the same as #other</title>
<link rel="stylesheet" href="http://jqueryvalidation.org/files/demo/site-demos.css">
 
</head>
<body>
<form id="myform">
<label for="password">Password</label>
<input id="password" name="password" />
<br/>
<label for="password_again">Again</label>
<input class="left" id="password_again" name="password_again" />
<br>
<input type="submit" value="Validate!">
</form>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://jqueryvalidation.org/files/dist/jquery.validate.min.js"></script>
<script src="http://jqueryvalidation.org/files/dist/additional-methods.min.js"></script>
<script>
// just for the demos, avoids form submit
凤凰快三在线预测—官方网址22270.COM鈥攋Query.validator.setDefaults({
  debug: true,
  success: "valid"
});
$( "#myform" ).validate({
  rules: {
    password: "required",
    password_again: {
      equalTo: "#password"
    }
  }
});
</script>
</body>
</html>