DropDownList的value值获取 请问如何用javascript获取asp.net中的DropDownList的value值 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var s=document.getElementById('<%=DropDownList1.ClientID %>').value;alert(s); document.getElementById('DropDownList1').options[document.getElementById('DropDownList1').selectedIndex].value如果想得到text值document.getElementById('DropDownList1').options[document.getElementById('DropDownList1').selectedIndex].text document.getElementById("dropdownlist1")[document.getElementById("dropdownlist1").selectedIndex].text 直接document.form1.dropdownlist1.value获得的是text值 document.getElementById('id').options[document.getElementById('id').selectedIndex].value 导入数据中断恢复及中途操作思路方案求解 asp.net2.0 上传文件如何获取服务器路径。 有个问题用线程做好还是异步调用号 关于JS代码调用后台方法问题 讨论:Application中的变量,真的是全局的吗?(同时放分) jquery ajax 乱码问题 怎样先执行Gridview再执行JQ 写asp.net的工具?是不是都是vs.net vs.net的帮助中提到每个控件的系统平台要求,如果没有w98,是否还可以在98下运行?需要做哪些工作?谢谢!! 关于asp.net页面生命周期的问题,重新描述了一下,希望能说清楚 如何解决新弹出的网页藏到后面的问题? 菜鸟打印问题
var s=document.getElementById('<%=DropDownList1.ClientID %>').value;
alert(s);
document.getElementById('DropDownList1').options[document.getElementById('DropDownList1').selectedIndex].text