[thelist] javascript testing for a blank entry in a form

Joshua Olson joshua at waetech.com
Tue Jul 8 10:40:18 CDT 2003


----- Original Message ----- 
From: "David Turner" <david.turner at synergy.tv>
Sent: Saturday, September 13, 2003 11:17 AM


> hi gurus,
>
> i am using the following function to validate a form before it is
submitted.
> however it doesnt seem to trap the frm.name being blank.

David,

The form element has a name attribute.  So instead of using the form element
called "name" it is referencing the attribute.  It is good practice to use
the elements collection when referring to elements.  Example:

frm.elements.name.value

Good luck.

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168



More information about the thelist mailing list