[Javascript] Listbox

Peter Brunone peter at brunone.com
Mon Feb 2 15:49:59 CST 2004


var myListLength = myList.options.length;

If length is greater than zero, you have at least one item in the list.

-----Original Message-----
From: javascript-bounces at LaTech.edu On Behalf Of Dave Stoltz

If I have a listbox (not a dropdown) named "mylist", how can I test to
see if there are any values in the box? I need to test if it's empty or
not.

Thanks!





More information about the Javascript mailing list