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
This should work, see the demo here by clicking on the preview button.