I am using jQuery to add a class of .display-product-noms to a div upon a certain menu item being hovered over. Once this triggers I then want a banner to appear but only if the previous class has been added to a div so i tried using the following:
if ($('.display-product-noms').css('left') === '16.4em!important') {
$('.nav-banner').css( "left", "41em!important" );
}
but nothing happens, the banner stays out of view with its original value of left: -9999em; Can anyone shed some light on where i am going wrong?