I create draggable, resizable pictures and want the last one dragged (and if possible clicked) to be on top. Each div has it's own id and all have the class 'rectangle'.
The jQuery example initiazies using a class ".selector":
$( ".selector" ).draggable({
stack: ".products"
});
I initialize mine with their id
$(boxId).draggable({
stack:".rectangle",
containment: "parent",
snap:true,
snapTolerance: 6,
.
.
});
It does not work. So I googled the problem and tried another way
stop: function (event, ui){
$(ui.element).css({'z-index': 2000});
}
I knew if it worked I would have to use an increated variable instead of 2000 but did not work either. Please help.