I have a number of div elements with different z-index. And I want to find the highest z-index among these divs - how can I achieve it?
CSS:
#layer-1
Besides @justkt's native solution above, there is a nice plugin to do what you want. Take a look at TopZIndex.
$.topZIndex("div");