从网上搜索了好多资料,折腾了半天,终于搞定,记下来供大家参考这个是网上找到的 <script language="javascript"> function getvalue() { &n
javascript[c-sharp] view plaincopy1. var ddl=document.getElementById("dropdownlist的id");//获取dropdownlist对象 2. var ddlvalue=ddl.options[ddl.selectedIndex].value;//
In this article I am going to show how to get value from asp.net controls like TextBox, RadioButtonList, DropDownList, CheckBoxes through JavaScript.Introduction In day to day life generally we n
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号