时间:2020-11-28 14:22:58 | 栏目:jquery | 点击:次
1、jquery
//获取value值 $("#ddlSubmodel").val(); //获取text值 $("#ddlSubmodel").find("option:selected").text();
2、javascript
//获取value值 document.getElementById("ddlSubmodel").value; //获取text值 var select = document.getElementById("ddlSubmodel"); if (select.selectedIndex > -1) { select.options[select.selectedIndex].innerText; }