摘要:[jQuery]取得下拉式選單的選項的數量
javascript:
var mySelect = $("select[id*=mySelect]"); //群組開窗
alert("mySelect.length:" + mySelect.children("option").length);
參考文章:
how to check how many options in a dropdown
http://stackoverflow.com/questions/3337749/how-to-check-how-many-options-in-a-dropdown