<asp:dropdownlist id="ddlBusCode" runat="server"></asp:dropdownlist>
如何用JS获取下拉框的值?
如何用JS获取下拉框的值?
var ddl = document.getElementById("ddlBusCode")
var index = ddl.seletedIndex;
var Value = ddl.options[index].value;
var Text = ddl.options[index].text;
var index = ddl.seletedIndex;
var Value = ddl.options[index].value;
var Text = ddl.options[index].text;