Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
确定jquery-C#asp,net jquery选中了哪个复选框_C#_Jquery_Asp.net - Fatal编程技术网

确定jquery-C#asp,net jquery选中了哪个复选框

确定jquery-C#asp,net jquery选中了哪个复选框,c#,jquery,asp.net,C#,Jquery,Asp.net,在上面的复选框列表中,我试图通过JQuery获取(所选值)以保存它并将其存储在数据库中的。请检查以下JQuery: <asp:CheckBoxList ID="ckbLstPartner" runat="server" RepeatDirection="Horizontal" CssClass="cssRdlstMoheSacm"> <asp:ListItem Text="Yes" Value="1"></asp:ListItem> <asp:ListI

在上面的复选框列表中,我试图通过JQuery获取(所选值)以保存它并将其存储在数据库中的
。请检查以下JQuery:

<asp:CheckBoxList ID="ckbLstPartner" runat="server" RepeatDirection="Horizontal" CssClass="cssRdlstMoheSacm">
<asp:ListItem Text="Yes" Value="1"></asp:ListItem>
<asp:ListItem Text="No" Value="0"></asp:ListItem>
</asp:CheckBoxList>
$('#')。foreach(函数(){
如果($(this).is(':checked')){
***// ??***
}
否则{
}
});
获取检查值

$('#<%=ckbLstPartner.ClientID %>').foreach(function () {
        if ($(this).is(':checked')) {
          ***// ??***
        }
        else {
        }
    });
$('#').find('option:checked').val();

就这样

$('#<%=ckbLstPartner.ClientID %>').find('option:checked').val();

如果我想取消锁定另一个选项?我该怎么办?
$('#<%=ckbLstPartner.ClientID %>').find('option:checked').val();
$('[id$=ckbLstPartner]').find('option:checked').val();