jquery清空下拉框,保留第一个

js中可以document.getElementById("id").options.length = 1;设置

jquery中的设置方法:$("#id option[index!='0']").remove();

还有写关于这些的知识:http://hi.baidu.com/zhangyong0604/item/c715c4cb4d01f31150505831

posted @ 2013-07-08 10:35  Uoolo  阅读(847)  评论(0编辑  收藏  举报