Your close:
$("#sortable").sortable({
axis: "y",
cursor: "move",
change: function(event, ui) {},
start: function(event, ui) {
$(ui.item).css("opacity", "0.6");
},
stop: function(event, ui) {
$(ui.item).css("opacity", "1.0");
}
});
I would also suggest, instead of directly manipulating the style of the elements, add and remove a class for the element to change its style (easier to maintain and implement globally).
source
share