如何判断下拉菜单是否有可供选择的选项?
var menu = getElementById("select_id"); if(menu.options.length) { // has children } else { // empty }