test for style display: none on div, then change another div??

test for style display: none on div, then change another div??

I have a div, #EmptyCartMessage, which gets an auto-generated "style=display:none" on it...

I need something like this air code:

if( $(div #EmptyCartMessage).css("display") != 'none' ){
OR
if not (

$(div #EmptyCartMessage).css("display") = 'none' ){


$(div #KeepShopping).
css("display") == 'none'

}



Test that #EmptyCartMessage does NOT have a style=display:none on it
If true do not display the #KeepShopping div

I read about testing visibility but doing so did not point the way toward testing for a specific style applied to a specific div's specific ID, which is what I need to do...

Thank you, Tom