Unset filter for Parent checkboxes
-
Hello! First of all thank you for writing a beautiful plugin ??
I am encountering a small problem: I have a checkbox-filter with several sub-items. These are collapsed by default (or the list will be too long). I want the ‘parent’ filter to uncheck after one of the ‘child’ items are selected, otherwise the Filter doesn’t really work (since ALL the child items are active when the parent Filter is selected). I can do this with jQuery like so:
$( '.woof_container_checkbox li li' ).click( function() { $(this).parent().parent().find(':checkbox').first().prop('checked', false); });
This unchecks the parent items but it leaves the checkbox selected in HTML. I’m guessing there’s an onClick event in JS which has to be unset or something? Do you have an idea how to solve this?
Thanks!
Marten
- The topic ‘Unset filter for Parent checkboxes’ is closed to new replies.