HTML
<div>
<asp:CheckBox ID="All" runat="server" Checked="true" Text="ALL" ForeColor="Black" /><br />
<asp:CheckBox ID="CheckBox2" runat="server" Text="Accepted" ForeColor="Black" CssClass="chkdisplay" /><br />
<asp:CheckBox ID="CheckBox3" runat="server" Text="Contacted" ForeColor="Black" CssClass="chkdisplay" /><br />
<asp:CheckBox ID="CheckBox4" runat="server" Text="Pending" ForeColor="Black" CssClass="chkdisplay" /><br />
<asp:CheckBox ID="CheckBox5" runat="server" Text="Pre-Authorized" ForeColor="Black" CssClass="chkdisplay" /><br />
<asp:CheckBox ID="CheckBox6" runat="server" Text="Show Deleted" ForeColor="Black" CssClass="chkdisplay" /><br />
<asp:CheckBox ID="CheckBox7" runat="server" Text="Treated" ForeColor="Black" CssClass="chkdisplay" />
</div>
我试过的脚本(它不工作)。我已经使用asp.net checkbok
并cssclass
迭代了我cssclass does not work
想class selector
:
$(document).ready(function () {
$('.chkdisplay').each(function () {
if ($(this).is(':checked')) {
$('#All').attr('checked', false);
}
});
});
有什么方法我只想使用 asp.net 复选框。当我选择任何checkbok between 2 to 7
我想要ID="All"
取消选中的复选框时
谢谢你