[Javascript] Listbox

Dave Stoltz dstoltz at shh.org
Tue Feb 3 10:58:54 CST 2004


Ahhhhhhhh.....that's it! Thank you!!!! 

-----Original Message-----
From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
On Behalf Of Peter Brunone
Sent: Monday, February 02, 2004 4:50 PM
To: '[JavaScript List]'
Subject: RE: [Javascript] Listbox


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!


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





More information about the Javascript mailing list