How to automatically assign different Z-Index Values to multiple elements with jQuery
Posted
by Moak
on Stack Overflow
See other posts from Stack Overflow
or by Moak
Published on 2010-03-31T08:50:23Z
Indexed on
2010/03/31
8:53 UTC
Read the original article
Hit count: 317
for example i have the markup
<div>
<img src="#" alt=""/>
<img src="#" alt=""/>
<img src="#" alt=""/>
<div>
I want to select $('div img') and then assign each one a z-index value so the first one is 3, second 2, third 1. Is this simple with jQuery?
Thanks
© Stack Overflow or respective owner