I’m trying to test for something’s visibility with
$(this).css('display')=="none";
The problem is, it works in chrome, FF…but not in IE. I’ve tried IE 8 and 9 so far.
Does anyone know a work around? This is very frustrating as a bunch of people still use IE and I don’t want to lose that bunch of people.
Use
$(this).is(":visible")for a cross-browser solution.From the docs:
Read more: http://api.jquery.com/visible-selector/
and How to tell if an element is visible