I have a tag such as:
<div class="menu" style="display:relative;">
..and I am trying to check with:
if ($('.menu').css('display','relative'))
.. the CSS for .menu has display:fixed; so it's ignoring the inline style and returning negative for if.
What's the best way to check the active style attribute on an element regardless if in CSS or inline?
Thanks.
displayproperty asrelativewhen you call$('.menu').css('display', 'relative'). Check the API reference for the getter function.