Hi All,
I have some code to check two text fields and submit a form if the fields match (it's to verify passwords). I don't know why but I am getting an "Object doesn't support this property or method" on the submit method. I tried it as shown below, as well as:
Any help is always appreciated. Thanks in advance. here is my code:
I have some code to check two text fields and submit a form if the fields match (it's to verify passwords). I don't know why but I am getting an "Object doesn't support this property or method" on the submit method. I tried it as shown below, as well as:
JavaScript:
document.frmAddUser.submit();
Any help is always appreciated. Thanks in advance. here is my code:
JavaScript:
<script type="text/javascript">
function verifyPass() {
var pass=document.getElementById("password").value;
var vpass=document.getElementById("verifyPassword").value;
if (pass==vpass) {
document.forms["frmAddUser"].submit();
}else{
alert("The passwords do not match.");
}
}
</script>