"password.jsp"
Bootstrap 3.0.0 Snippet by Kavilaksh

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <form id="myForm" method="POST" action="..."> <p>Password: <input id="field_pwd1" type="password" name="password1"></p> <p>Confirm Password: <input id="field_pwd2" type="password" name="passw2"></p> <p><input type="submit" value="Submit"></p> </form>
.buttons_divider { margin-top: 10%; margin-bottom: 10%; border-bottom: solid #ccc 1px; } .sign_up_title { text-align: center; margin-bottom: 5%; } .sign_in_but { border-radius: 45%; margin-left: 5px } .sign_up_form { margin-bottom: 30%; } .sign_up_form input { border-radius: 0px; } .bg-lightgray { background-color:LightGray; } p { text-align: center; } header { margin-bottom: 5%; } .header_bar { margin-top: 20px; margin-bottom: 20px } footer { margin-top: 5%; } .footer_terms { margin-top: 20px; } .footer_rights { margin-top: 20px; margin-bottom: 20px; text-align: center; } .terms_and_conditions { text-align: center; margin-bottom: 10px; }
var confirmField = document.getElementById("confirm_password"); var passwordField = document.getElementById("password"); function checkPasswordMatch(){ var status = document.getElementById("password_status"); var submit = document.getElementById("submit"); status.innerHTML = ""; submit.removeAttribute("disabled"); if(confirmField.value === "") return; if(passwordField.value === confirmField.value) return; status.innerHTML = "Passwords don't match"; submit.setAttribute("disabled", "disabled"); } passWordField.addEventListener("change", function(event){ checkPasswordMatch(); }); confirmField.addEventListener("change", function(event){ checkPasswordMatch(); });

Related: See More


Questions / Comments: