Skip to content

Instantly share code, notes, and snippets.

@afahy
Created October 15, 2009 23:48
Show Gist options
  • Save afahy/211402 to your computer and use it in GitHub Desktop.
Save afahy/211402 to your computer and use it in GitHub Desktop.
Get elements with defined z-index
/* 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