I am showing a notification bar on some pages on my site. If the bar is showing I would like to highlight the navigation bar and move it down the page.
The css for the bar is <div id="infobar_1_1" class="info_bar" style="background-image:...
<div class="infobar_inner"><span id="infobar_txt" ....</div></div>
I'm trying to use jquery code
if ($('#infobar_1_1').hasClass('.info_bar')) { $(".navbar").css({"background-color":"yellow", "margin-top":"40px"});}
but nothing is happening.
`$(".navbar").css({"background-color":"yellow", "margin-top":"40px"});`
works on every page so maybe there is something wrong with the if() statement.
My site is a wordpress site. Thanks