In this plunk I have a div that contains an input field readonly. I made the div draggable with jQuery UI.
When I drag the portion that is not hidden by the input field, it works fine (try dragging the orange area). But when I try to drag the div by dragging the input field, the div doesn't move. I need to drag the div even though the mouse is on any element included in the div. Is this possible?
Javascript:
$(function() {
var div1 = $('#div1');
div1.draggable();
var input1 = $('<input type="text" readonly value="Some Text" style="position:absolute;top:0;left:0;border:0">');
input1.appendTo(div1);
})