10 lines
278 B
JavaScript
10 lines
278 B
JavaScript
function validate() {
|
|
var pass = document.getElementById("password").value;
|
|
var cpass = document.getElementById("cpassword").value;
|
|
if (pass == cpass) {
|
|
return true;
|
|
} else {
|
|
alert("Passwords do not match");
|
|
return false;
|
|
}
|
|
} |