日期:2014-05-16 浏览次数:20384 次
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem Value="A">a</asp:ListItem>
<asp:ListItem Value="B">b</asp:ListItem>
</asp:RadioButtonList>
<asp:RadioButtonList ID="RadioButtonList2" runat="server">
<asp:ListItem Value="C">c</asp:ListItem>
<asp:ListItem Value="D">d</asp:ListItem>
</asp:RadioButtonList>
var rds = $('input:radio');
$('input:radio').each(function () {
if (rds.filter('[name="' + this.name + '"]:checked').size() == 0) { alert(this.name + '还没有选择!'); return false; }
});