Here's the thing I wanna be able to click a div, and have it display above another div, on ever single div I have on my website I'm coding, (I also have it so I can click and drag divs as well) however I haven't had any luck.
For example if you head here -
http://jsfiddle.net/e2TMV/You can see that I made an example for you guys. I wanna be able to click and drag div1 and once it's clicked have it display above div2 and visa versa. As well as if I had 200+ divs on without a z-index applied to them via CSS.
This is the code I tried to achieve this effect, but didn't work.
$(function(){
$("div").click(function(){
$(this).css('z-index','2');
});
});
});