120
rated 0 times
[
125]
[
5]
/ answers: 1 / hits: 16004
/ 14 Years ago, mon, january 31, 2011, 12:00:00
How to tell if a drop down has options to select?
More From » jquery
How to tell if a drop down has options to select?
var hasOptions = !!$('#theSelect option').filter(function() { return !this.disabled; }).length;
maybe? This looks for <option>
elements that are not disabled.