i'm busy with a timetable script, for that i need to use jQuery draggable and resizeable. but is you can see in te jsFiddle the draggable has a parent, but you can drag it 10px over the parent, every click moment. EDIT: the thing i need is that it can not be dragged outside the container. who can help
html:
<div class="containment" style="display:block; height:40px; width:150px; background-color:#f2f2f2;">
<div class="baldie" style="display:block; height:40px; width:150px; background-color: rgba(214, 255, 210, .7);"/>
</div>
jquery:
$('.baldie').resizable({
containment: "parent",
}).draggable({
grid: [5,0],
containment:"parent",
drag: function( event, ui ) {
}
});