Hello, there is a website whose filter is opened and closed using the .toggleClass () function, the code itself looks like this:

$(".filter_section-toggler").on('click', function(){ $(this).toggleClass( 'filter_section-value--current' ); $(this).parent().parent().children('ul').slideToggle(); }) $('.filter_section-value--current').parent('ul').css('display', 'block'); 

But unfortunately, after installing "jquery mmenu", the function did not work correctly, an example can be found here: http://www.postel-house.ru/?theme_preview=734554 , by going to the menu item here http: // prnt. sc / ds56ck and clicking http://prnt.sc/ds54m7 . It seems that the function works twice, maybe I'm wrong, please help

  • Where is html, where is css? "Look here, look there" - add the code! - HamSter
  • In the debugger, go and find out how many times the function works, and does .toggleClass() work? What is the problem then? - teran

0