A project I'm working on involves using jQuery Draggable to enable users to drag new elements into another div. Everything is functioning correctly, but I would like the element that's been dragged to appear on the left side in a different color to indicate it has been selected.
You can view my codepen here: https://codepen.io/scottYg55/pen/MWeXERP
I'm looking for a way to make it so that if a user selects a journey, it will display as black.
$(".journey").draggable({
appendTo: "body",
cursor: "move",
helper: 'clone',
opacity: 0.1,
revert: "invalid"
}).disableSelection();
The script above targets the draggable area and everything related to it is available on the codepen link.
Thank you!