Can I change the cursor while dragging? I searched and tried to do this for a while. I want to change the "invalid" cursor that appears when dragging an object to another cursor.
I tried to create an event and assign it to the image that I wanted to drag: -
<img id="drag1" class="drag" src="http://www.surfixe.com/img/tick2.png" draggable="true" ondragstart="drag(event)" />
Java: -
function drag(ev) {
$('#drag1').css('cursor', 'pointer');
}
jsfiddle
Edit: Note. My little project is suppost, which should be html-5 drag and drop, so I need to be able to change the cursor by dragging a div with html-5drag attribute
source
share