Created
October 15, 2009 23:48
-
-
Save afahy/211402 to your computer and use it in GitHub Desktop.
Get elements with defined z-index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Was getzidx.js */ | |
/* Now a custom selector, gives you more flexibility */ | |
/* Use ala: $("*:z-indexed"); */ | |
(function($){ | |
$.extend( | |
$.expr[":"], { "z-indexed": function(e){ return $(e).css("zIndex") != "auto" } } | |
); | |
})(jQuery); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment