@SempervivumJun 12.2019 — #Use a class to add the z-index and toggle it by jQuery: $( '.projects-open' ).click(function() { $("#projects-window").parents().toggleClass('has-z-idx'); }); .has-z-idx { z-index: 9999; }
@VITSUSAJun 12.2019 — #You can do it 2 ways, one using css() method, the other by toggling a class on the element that includes a css rule that defines the z-index. Personally I prefer the toggling of classes, it just seems a lot easier to troubleshoot css.