How to automatically assign different Z-Index Values to multiple elements with jQuery
- by Moak
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