Click to See Complete Forum and Search --> : JavaScript Help badly needed


Terra
01-06-2003, 03:47 PM
Am trying to get this form working, so when the "validate" button is click it checks whats in the other boxes & displays a warning if needed.

So far i can get it to validate/check the first name box, but it gets stuck on the lastname box! GRRRRR it wont then go past this.

If any of you are any good at javascript, please pretty please can you have a look and see if you can spot anything wrong.

Cheers :o

ChikoritaPro
01-06-2003, 03:52 PM
First Name: <INPUT TYPE="text" NAME="firstName" SIZE="10">
Last Name: <INPUT TYPE="text" NAME=lastName" SIZE="20">
Student Number:<INPUT TYPE="text" NAME="stuNumber" SIZE="6"><p></P>

Look closely at the NAME=lastName" part of the coding. See anything missing? You're missing a Quotation Mark (") before lastName. Enjoy :)!

Terra
01-06-2003, 03:57 PM
God I love you!!!!

Now the first 3 boxes work!!!!! Am getting there!!!!

Only 5 or so to go :o)

I think i have sat there staring at that stuff for too long!

khalidali63
01-06-2003, 04:10 PM
you do not have validateHouseName() method defined,its only called.

Khalid

Terra
01-06-2003, 04:25 PM
LOL, is there and defined, have i put a typo in somewhere?