Skip to content

Instantly share code, notes, and snippets.

@benkeen
Created July 9, 2015 16:12
Show Gist options
  • Save benkeen/339af429dbac2c026c3d to your computer and use it in GitHub Desktop.
Save benkeen/339af429dbac2c026c3d to your computer and use it in GitHub Desktop.
Find all elements in a page with a z-index set
$('*').filter(function() {
return $(this).css("zIndex") !== "auto";
}).each(function(row, item) {
console.log(item, $(item).css("zIndex"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment