Originally Posted by Johnny87auxsm
is that really an error? That shouldn't stop one of my validations to stop working ? If u download the attachment you will see once u hit submit all the validations work up until the male/female alert, this bit of code doesn't display an alert ??
// If AGREE isn't ticked no alert, if it's left blank an alert dialog will appear
if (document.getElementById('agreed').checked == false)
alert ("You didn't agree to the terms");
Thre is nothing wrong with your code. The error must be elsewhere. Are you using your error console? That is what it is there for.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.