jquery获取ASP.NET服务器端控件dropdownlist和radiobuttonlist
2011-03-12 19:58
681 查看
jquery获取ASP.NET服务器端控件dropdownlist和radiobuttonlist生成客户端HTML标签后的value和text值
—、获取dropdownlist的text(ddlList为服务器端dropdownlist的ID,生成name属性等于ddlList的select标签)
$("#ddlList option:selected").text()
二、获取dropdownlist的value(ddlList为服务器端dropdownlist的ID,生成name属性等于ddlList的select标签)
$("#ddlList").val()
三、获取radiobuttonlist的text(rbtList为服务器端radiobuttonlist的ID,生成name属性等于rbtList的一组input标签)
$("input[name='rbtList']:checked+label").text()
四、获取radiobuttonlist的value(rbtList为服务器端radiobuttonlist的ID,生成name属性等于rbtList的一组input标签)
$("input[name='rbtList']:checked").val()
—、获取dropdownlist的text(ddlList为服务器端dropdownlist的ID,生成name属性等于ddlList的select标签)
$("#ddlList option:selected").text()
二、获取dropdownlist的value(ddlList为服务器端dropdownlist的ID,生成name属性等于ddlList的select标签)
$("#ddlList").val()
三、获取radiobuttonlist的text(rbtList为服务器端radiobuttonlist的ID,生成name属性等于rbtList的一组input标签)
$("input[name='rbtList']:checked+label").text()
四、获取radiobuttonlist的value(rbtList为服务器端radiobuttonlist的ID,生成name属性等于rbtList的一组input标签)
$("input[name='rbtList']:checked").val()
相关文章推荐
- jquery获取ASP.NET服务器端控件dropdownlist和radiobuttonlist生成客户端HTML标签后的value和text值
- jquery获取ASP.NET服务器端控件dropdownlist和radiobuttonlist生成客户端HTML标签后的value和text值
- js获取asp.net服务器端控件Label,TextBox,RadioButtonList,DropDownList的值
- js如何获取asp.net服务器端控件的值(label,textbox,dropdownlist,radiobuttonlist等)
- js获取asp.net服务器端控件Label,TextBox,RadioButtonList,DropDownList的值
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- js获取asp.net服务器端控件Label,TextBox,RadioButtonList,DropDownList的值
- js获取asp.net服务器端控件Label,TextBox,RadioButtonList,DropDownList的值
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- ASP.NET服务器端控件RadioButtonList,DropDownList,CheckBoxList的取值、赋值用法
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- ASP.NET服务器端控件RadioButtonList,DropDownList,CheckBoxList的取值、赋值用法
- ASP.NET中JS获取服务器控件radiobuttonlist和DropDownList选中值
- ASP.NET服务器端控件RadioButtonList,DropDownList,CheckBoxList的取值、赋值用法
- js获取asp.net服务器端控件Label,TextBox,RadioButtonList,DropD
- ASP.NET服务器端控件RadioButtonList,DropDownList,CheckBoxList的取值、赋值用法
- 用JavaScript获取Asp.net服务器端控件CheckBoxList的选中值数组
- 用JavaScript获取Asp.net服务器端控件CheckBoxList的选中值数组(转)
- 用JavaScript获取Asp.net服务器端控件CheckBoxList的选中值数组