Click to See Complete Forum and Search --> : Not Validating Fields in Focus


Four_of_Five
02-07-2003, 12:27 PM
This is just an indulgence script..but I just had to add on to it coz it seemed simple enough...

The attached script txt is supposed to validate (pop up a javascript prompt box) if the required field entry is not entered..in this case Name field...It worked fine...until I put in the "form focus" script (it simply puts the cursor inside the Name field box...go figure :rolleyes:

There's no more validation :(

Dan Drillich
02-08-2003, 08:46 AM
Just remove the tag -


<form name=form1>


By mistake it's there.

Cheers,
Dan

Four_of_Five
02-12-2003, 01:15 AM
Thanks Dan,

But by removing the tag<form name=form1>....i got back the validation alright...but the form focus disappeared..script error also...What i had liked was to have both scripts work at the same time.

The form focus automatically puts the cursor "blink" inside the form you want to be filled up first...that's just basically what it does...:)