The default value for z-index
is auto
as based on MDN's documentation.
When I tried setting the z-index
now to 1
like this:
$("body").css("z-index", 1);
And the retrieved the z-index
property like this:
$("body").css("z-index");
it still returns auto
.
Why is this happening and how can I retrieve the currently set z-index
value?