javascript获取select 的id与值 <script type="text/javascript"> function showOptionId () { var type = document.getElementById ("select"); //获取select var typeId = type.options [type.selectedIndex].id; //获取option的ID var typeValue = type.o…
var obj = document.getElementById(”select_id”); //selectid var index = obj.selectedIndex; // 选中索引 var text = obj.options[index].text; // 选中文本 var value = obj.options[index].value; // 选中值 JS如何取得SELECT选中的值(不是Value属性)? <select name="JobName" id=…