I have a question / task that is so obvious that I still wonder why I could not find a solution for this ...
In a JavaScript application using jQuery UI, I use the draggable() and droppable() to be able to move elements around. This works directly and as expected.
But now I want to change the mouse cursor so that it shows where I can delete an element ( cursor: "copy" ) or where it is impossible ( cursor: "no-drop" ).
This should be, of course, only during drag and drop, otherwise a regular cursor should be displayed.
Note. It can be assumed that a drop is allowed in only one special <div> (for example, identified by id or class ), and in all other respects, a drop is not allowed.
Chris source share