处理select信息:
var se = document.getElementById("select");
if(se.nodeName=='SELECT'){//判断标签
alert(se.options[se.selectedIndex].value);//获取value
alert(se.options[se.selectedIndex].text);//获取text
se.options.add(new Option("qw","12"));//添加选项
se.options.remove("qw");//删除选项
se.options[0].selected=true;//默认选中第一项
}
for(var i = 0;i<se.options.length;i++){
if(se.options[i].value==code){
se.options[i].selected=true;
break;
}
}