Could anyone post a minimalistic example of drag’n’drop imeplementation using jQuery without using draggable behavior? On my understanding it shouldn’t be much longer than 10 lines.
I’ve the following html:
<div id="container" style="width:500px; height:500px;">
<div id="draggable" style="width:10px; height:10px; background-color:blue;" />
</div>
I want to make a blue squre draggable so.
I’ve got my implementation working, but it looks rather monstrous, so I ‘d like to get a touch of class from you guys.
This is how I would do it:
demo: http://jsfiddle.net/sXahK/6/