0

jQuery(document).on('change', '.categorychecklist ul.children input[name="post_category[]"]', function () {
       get_par = jQuery(this).parents('ul.children');
       get_par_li = get_par.parents('li').find("label").first();
       get_cur_status = jQuery(this).is(':checked');
       if (get_cur_status) {
           jQuery(get_par_li).find('input[name="post_category[]"]').prop("checked", true).change();
       }
   });

Jagdish Sarma Asked question September 21, 2023
Add a Comment