I tried jQuery\'s
$(\'#divOne\').animate({zIndex: -1000}, 2000)
to that element which has a z-index of 1000, but it is still above the othe
You cannot animate the zindex. You can set it using .css.
$("#divOne").css('z-index' , '-1000');