Please help, I want to have that green box can be dragged in its parent, but it also can overflow from its parent, and will be hidden when it's (green box) moved or dragged over the line. Can someone help me?
Javascript:
$(document).ready(function() {
$("#child").draggable({
containment: 'parent'
});
});
HTML:
<div id="parent">
<div id="child"></div>
</div>
Please help, here's the fiddle for example : http://jsfiddle.net/vbJHJ/9/
I read http://api.jqueryui.com/draggable/ but nothing can help me.. :(