使用jquery 获取RadioButtonList 中选中值
2014-02-15 08:38
344 查看
第一种方法:
<mce:script language="javascript"><!--
$(document).ready(function() {
$("#btnSubmit").click(function() {
alert($("#RadioButtonList1").find("input[@checked]").val());
});
});
// --></mce:script>
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:RadioButtonList>
<input id="btnSubmit" type="button" value="Submit" />
第二种方法:
var rubricType = $("input[name='rblRubricType']:checked").val();
<mce:script language="javascript"><!--
$(document).ready(function() {
$("#btnSubmit").click(function() {
alert($("input[name='RadioButtonList1']:checked").val());
});
});
// --></mce:script>
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:RadioButtonList>
<input id="btnSubmit" type="button" value="Submit" />
<mce:script language="javascript"><!--
$(document).ready(function() {
$("#btnSubmit").click(function() {
alert($("#RadioButtonList1").find("input[@checked]").val());
});
});
// --></mce:script>
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:RadioButtonList>
<input id="btnSubmit" type="button" value="Submit" />
第二种方法:
var rubricType = $("input[name='rblRubricType']:checked").val();
<mce:script language="javascript"><!--
$(document).ready(function() {
$("#btnSubmit").click(function() {
alert($("input[name='RadioButtonList1']:checked").val());
});
});
// --></mce:script>
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:RadioButtonList>
<input id="btnSubmit" type="button" value="Submit" />
相关文章推荐
- 使用jquery 获取RadioButtonList 中选中值
- asp.net使用jQuery获取RadioButtonList成员选中内容和值示例
- asp.net使用jQuery获取RadioButtonList成员选中内容和值示例
- 使用jquery 获取RadioButtonList 中选中值
- 使用jquery获取radio的值
- 使用jquery获取radio的值
- 使用jquery获取单选radio的值
- 使用jquery获取radio的值
- 学习Jquery - 获取RadioButtonList中Radio项的选中值
- 使用jquery获取checkbox组和radio组的值
- 使用Jquery获取Bootstrap Radio Group当前选中的单选框的值
- 使用jquery获取radio的值
- 使用jquery获取单选按钮radio的值
- 使用jquery获取radio的值
- 使用jquery获取radio的值
- 使用jquery获取radio的值
- 如何使用jQUery获取选中radio对应的值(一句代码)
- 使用jquery获取radio的值
- 使用jquery获取radio的值
- 使用 Jquery 选中获取 checkbox radio 和 select的 value 和 text