//删除select里的所有内容 document.getElementById(id).options.length=0; //动态删除select中的某一项option document.getElementById(id).options.remove(indx); //设置默认选项 document.getElementById(id)..selectedIndex = 0; //添加选项 document.getElementById(id).options.add(new Option(text, value)); //获取当前选中的值 document.getElementById(id).value; //获取所有值的对象 为数组 var Obj = new Array(); Obj = document.getElementById(id).options; //得到select的当前选中项的text var currSelectText = document.getElementById(id).options[document.getElementById(id).selectedIndex].text;
?