Validation with switch/case
I'm at my wits end here, and would appreciate any advice. The problem lies in the switch/case in the "validateForm()" function.
I've tried using "if(field.value==null)" in the three IFs, to identify the three respective variables, but this obviously doesn't work. What do I use in the place of "field.value"?
What's the problem exactly?
Great wit and madness are near allied, and fine a line their bounds divide.
Nevermind, it seems that "value" is a String, so the code works if I replace "null" with "". Sorry, rookie mistake.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)