Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Class active on “cookie-law-info-bar”

$
0
0

Replies: 0

Hi,

How it’s possible to add an active class on “cookie-law-info-bar” div ?

I already tried this, it’s work but active class stay when the bar disappear :

if(jQuery(cli_bar).length < 0) {
 jQuery('#cookie-law-info-bar').addClass('cli-bar-active');
}

I want an active class on “cookie-law-info-bar”, to move an another div when “cookie-law-info-bar” is shown or hidden.

I’ve already tried code below to detect display none, no success too :
if $('#cookie-law-info-bar').css('display') == 'none') {

Regards.


Viewing all articles
Browse latest Browse all 59525

Trending Articles