You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
336 B
10 lines
336 B
function validateForm() {
|
|
var password = document.forms["form"]["password"].value
|
|
var confrim_pwd = document.forms["form"]["confrim_pwd"].value
|
|
if (confrim_pwd !== password) {
|
|
alert("确认密码与密码不相同")
|
|
return false
|
|
}
|
|
delete document.forms["form"]["confrim_pwd"].value
|
|
return true
|
|
}
|
|
|