I have an asp page in which the are number of listboxes.I want to count the number of listboxes using Javascript and also there is another requirement,i want to disable all the listboxes in that form
+4
A:
Using plain javascript:
document.getElementsByTagName('select').length
Using jQuery:
$('select').length
Greg
2009-09-05 10:48:57
Can't get any simpler that this. +1
jimyshock
2009-09-05 15:11:52