Can calculate next z-index in javascript

Is it possible to get the highest z-index property in any container if none of the elements in it have a z-index set through styles? The only approach I found in googling returns "auto" for the z-index.

+4
source share
3 answers

Here's a jQuery Module that can do this.

+1
source

If no z-index is given, then auto is z-index ...

0
source

Do not think about it without a special solution scenario - I always wanted something like getNextHighestDepth that you get in ActionScript

0
source

Source: https://habr.com/ru/post/1332754/


All Articles