How do I target a div that is dynamically created on mousedown and mousemove and then removed on mouseup?
I have tried to target it like so:
$ ('div').on('remove', '.ui-draggable-dragging', function(e){
console.log('hello world');
});
This div only happens when a box is created by another js script. Thanks for your help.