Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function passcheck() {
- var pass1 = document.getElementById("pass1").value;
- var pass2 = document.getElementById("pass2").value;
- if (pass1 != pass2) {
- alert("Passwords Do not match");
- document.getElementById("pass1").style.borderColor = "#E34234";
- document.getElementById("pass2").style.borderColor = "#E34234";
- return false;
- }
- else {
- return true;
- }
- }
- </script>
Add Comment
Please, Sign In to add comment