1.var selectab=document.all("ddlhpsbzl").options[document.all("ddlhpsbzl").selectedIndex].value;
2.var selectab=document.getElementById("ddlhpsbzl").value;
这两种方法都能得到DropdownList的选定值,但是这阶段太忙了,所以不有去查它们之间有哪些区别,所以想借助大家的力量,大家来各抒已见,谈一谈它们之间的区别
1.var selectab=document.all("ddlhpsbzl").options[document.all("ddlhpsbzl").selectedIndex].value;
2.var selectab=document.getElementById("ddlhpsbzl").value;
这两种方法都能得到DropdownList的选定值,但是这阶段太忙了,所以不有去查它们之间有哪些区别,所以想借助大家的力量,大家来各抒已见,谈一谈它们之间的区别