Is it possible to change the cursor while dragging?
I have been searching and trying to do it for a while now. I want to change the 'not-allowed' cursor which shows up while you drag an object to another cursor.
I tried creating an event and assigning it to the image I wanted to drag:-
<img id="drag1" class="drag" src="http://www.surfixe.com/img/tick2.png" draggable="true" ondragstart="drag(event)" />
JavaScript:-
function drag(ev) {
$('#drag1').css('cursor', 'pointer');
}
Edit: Note: My little project is supposed to be html-5 drag and drop
, so I need to be able to change the cursor while dragging a div with html-5 drag
attribute