jQuery获取RadioButtonList 的值

$(document).ready(function() {  
$("#btnSubmit").click(function() {
alert($("input[name='RadioButtonList1']:checked").val());
});
});

 

<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" />



posted @ 2011-12-06 16:39  minglz  阅读(996)  评论(1编辑  收藏  举报