[thelist] js testing for empty fields

Kae Verens kverens at contactjuggling.org
Thu Feb 13 10:43:01 CST 2003

Tom Dell'Aringa wrote:
>>you could also probably get away with this:
> Would this for sure cover both cases?

It should - I haven't tested this, but I believe that .value.length
should return -1 if .value is null, and of course 0 if it's an empty
string or a number.

Kae Verens               _______\_   webworks.ie
work: www.webworks.ie       _____\\__   webhosts
play: www.contactjuggling.org  ___\\\___  design
kae:  kverens.contactjuggling.org _\\\\____ code

More information about the thelist mailing list