$(".i-checks").iCheck({
checkboxClass: "icheckbox_square-green",
radioClass: "iradio_square-green",
});
$("#isCheckAll").on('ifChecked', function(event) {
$('input').iCheck('check');
});
$("#isCheckAll").on('ifUnchecked', function(event) {
$('input').iCheck('uncheck');
});
$('input[type="checkbox"]').on('ifChecked', function() {
$(this).val('1');
});
$('input[type="checkbox"]').on('ifUnchecked', function() {
$(this).val('0');
});