[Javascript] Checking Form Values

Peter Brunone peter at brunone.com
Wed Aug 27 11:08:29 CDT 2003


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




More information about the Javascript mailing list