How do I attach html-element to mouse cursor using jQuery. This should be something like ‘draggable’, but I want that element clung to the cursor after mouse double-click and to follow the cursor until the left mouse button is pressed.
How do I attach html-element to mouse cursor using jQuery. This should be something
Share
You’ll want to use
.mousemove()and.offset().Working demo: http://jsfiddle.net/EbbxA/