code so sánh hai chuỗi do người dùng nhập vào có giống nhau hay không
<script>
function checkPw(form) {
matkhau1 = form.matkhau1.value;
matkhau2 = form.matkhau2.value;
if (matkhau1 != matkhau2) {
alert ("mật khẩu không trùng khớp.")
return false;
}
else return true;
}
</script>
0 comments:
Post a Comment