It was your main function that was screwing up ....... you were trying to access the style with things like logError.style.visibility without using document.getElementById .. try this ..... works fine in both now!
Code:
function validateForm() {
if(document.getElementById('logError').style.visibility == "hidden" && document.getElementById('pwdError').style.visibility == "hidden" && document.getElementById('rePwdError').style.visibility == "hidden" && document.getElementById('emailError').style.visibility == "hidden" && document.getElementById('birthdayErr').style.visibility == "hidden") {
return true;
}
else {
alert("There is missing or invalid data on the form");
return false;
}
}
Bookmarks