I used .toggleClass()
in a div
, which after clicking a button, activates the class " menu-active
", if clicked again, it removes it. So far so good.
But now, in addition, I need something to check if this class is active, if it is, I wanted to leave the body
tag of the theme with a " overflow:hidden
", if not " overflow:auto
". / p>