Good day,
Maybe someone can tell the following task:
When the body opens a modal window, a modal-open class appears, and when it closes, it disappears and I need to attach an action to this action that will hide / show the open button of this modal window itself.
I do so, but for some reason it does not work:
if ($('body').hasClass('modal-open')) { $('.imcallask-btn-mini').hide(); } if ($('body').not('modal-open')) { $('.imcallask-btn-mini').show(); }