I have a window with a number of chat DIV\'s where a user to chat to different people.
Currently the chat DIV\'s can be open and moved around but I can\'t see to get the
I figured out that the easiest implementation is to move the div in the dom to the last position. so if you dont have to care about the position in the dom this is the easiest way without using z-index. i use this for positioning some sticky notes.
$("#chatWrapper").on('mousedown', '.chatMessenger', function() {
$(this).appendTo("#chatWrapper");
});