Answer the question
In order to leave comments, you need to log in
How to properly close the "great-grandfather" of a particular current checkbox after a change?
find doesn't work, I tried.
In general, there is a list with checkboxes for product categories and attributes, for filtering. When you click on the title of a category or a specific attribute, this list opens, by default it is hidden. More or less like this
jQuery('.side-nav>h5').on( "click", function() {
jQuery(this).parent('.side-nav').children('.st-accordion').slideToggle();
jQuery(this).children('span').toggleClass('rotate');
});
$('.side-nav>.st-accordion>ul>li input').on('change',function(e){
e.preventDefault();
cosmetic_get_posts();
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question