[Javascript] Checking Form Values

John Gibson johngibson25 at yahoo.com
Thu Aug 28 08:13:01 CDT 2003


Thanks

Peter Brunone <peter at brunone.com> wrote:Hi John,

There isn't really a "null" for form field values; the best you
can do is to check for an empty string, like this:

if(document.formName.fieldName.value == "") {
// do your empty-form-field stuff
}

Cheers,

Peter

-----Original Message-----
From: javascript-bounces at LaTech.edu On Behalf Of John Gibson

I was wonder ing how to check if a form input is null


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030828/3090e9ac/attachment.htm>


More information about the Javascript mailing list