Here are the two files:
newuser.html
validate.js
I'm pretty sure there isn't anything wrong with the syntax - I've validated my HTML and checked the javascript on IE, Firefox and Windows' Script Host.
The whole thing actually works, but there's a weird problem on the "birthdate" section (the last section of the file). The strange thing is, it'll work if I change it to a IF statement, but if it's an ELSE-IF (the way I want it to be), it just wouldn't process the lines!
:|
Can someone please tell me what I have overlooked? I've tried everything I can think of.. no go
:frown:
Any help appreciated.. thanks!
Edit: BTW you can download the files and it would run nicely on your computer.
newuser.html
validate.js
I'm pretty sure there isn't anything wrong with the syntax - I've validated my HTML and checked the javascript on IE, Firefox and Windows' Script Host.
The whole thing actually works, but there's a weird problem on the "birthdate" section (the last section of the file). The strange thing is, it'll work if I change it to a IF statement, but if it's an ELSE-IF (the way I want it to be), it just wouldn't process the lines!
Can someone please tell me what I have overlooked? I've tried everything I can think of.. no go
Any help appreciated.. thanks!
Edit: BTW you can download the files and it would run nicely on your computer.