Menu
[CODE]function drop(event, ui)
{
$(“#” + ui.draggable.attr(“id”)).css(“z-index”, parseInt($(this).css(“z-index”)) + 1);
}
$(“#area”).droppable();
$(“#area).bind( “drop”, drop);
I’ve use such a code to make dropped object laying on the top of the one it’s dropped on. But it doesn’t work. After dropping z-index of dropped object is recovered to initial value. Please, help.