A
Andrew Falanga
Hi everybody,
I've written a simple function to check that dates in my forms are
entered in the format that I need them to be in. I'm using the
onchange event attribute. However, it seems that to register the
change one must leave the field in question, tab or otherwise, and
then the script is run. I'd like to have it so that if there's an
error, the cursor is placed back in that field rather than the user
having to return. How would I do this?
Thanks,
Andy
I've written a simple function to check that dates in my forms are
entered in the format that I need them to be in. I'm using the
onchange event attribute. However, it seems that to register the
change one must leave the field in question, tab or otherwise, and
then the script is run. I'd like to have it so that if there's an
error, the cursor is placed back in that field rather than the user
having to return. How would I do this?
Thanks,
Andy