jquery与gridview,页面中有个gridview,有一个linkbutton,有一个checkboxlist,我用jquery实现了checkeboxlist全选功能,页面加载时能够实现全选,可是在我点击linkbutton后,全选失效,求解释,或者解决的办法。谢谢
        $(document).ready(function () {
            $("#<%=FitCrowd.ClientID %>").find("input").each(function () {
                $(this).click(function () {
                    if ($(this).attr("checked") == true) {
                        var isOk = true;
                       
                        $("#<%=FitCrowd.ClientID %>").find("input").each(
                    function () {
                        if ($(this).attr("checked") == false) { isOk = false; }
                    });
                    if (isOk) { $("#<%=chkperson.ClientID %>").attr("checked", true); }
                    alert("选中拉");
                    }
                    else {
                        $("#<%=chkperson.ClientID %>").attr("checked", false);
                        alert("没选中");
                    }
                });            });
        });
jquery实现功能没问题呃,就是点击了linkbutton后,无论我怎么点击checkbox,都不弹出任务信息