Say I have an image in a div
<div id="myImage"><img src="#" id="dragImage"></div>
I want to be able to drag that image using jquery .draggable and also close the parent div while still dragging the image.
I thought this would work, but it doesn’t
$('#myImage').click(function () {
$('#dragImage').draggable();
$('#myImage').hide();
});
try this