I am trying to add a class to a drag event using jQuery UI.
However, the following code that I wrote does not work properly;
$(function () {
$('ul.sortable div.draggable').draggable({
start: function(event, ui) { ui.helper.addClass('move'); },
});
});
Essentially, I'm trying to add a shadow (using the move class) to div.draggable. What am I doing wrong since the drag event works but the shadow does not appear?
Thanks in advance.
source
share