I want to add 3 divs to my page. But before that I want to find the highest value of the z-index on the page and then add +1 to this value and add this new value to the css of these 3 divs. How can i do this in jQuery?
for example
<div id="one">
<div id="two"></div>
<div id="three"></div>
</div>
and the css
#one {width:200px; z-index: +1 to the highest value found ;}
#two {width:100px; z-index: +1 to the highest value found ;}
#three {width:50px; z-index: +1 to the highest value found ;}