icheck 动态设置选中,判断是否选择



                            $(this).iCheck('check');


 //启用禁用上级编号
            $('#OnPar').on('ifUnchecked', function (event) {
                $("#tbParBudCode").prop('disabled', true);
                $("#tbParBudCode").trigger("chosen:updated");
            });
            $('#OnPar').on('ifChecked', function (event) {
                $("#tbParBudCode").prop('disabled', "");
                $("#tbParBudCode").trigger("chosen:updated");
            });

原文地址:https://www.cnblogs.com/MartinLee/p/7622646.html