I’m making a draggable item, I just want this to drag vertically, limiting to the parent div, so its always completely visible, any suggestion?
<!--HTML Code-->
<div style="width:100px;height:100px; background:#333;" id="dragable"></div>
<!--jQuery Code-->
$('#dragable').live('mouseover',function(){
$(this).draggable();
});
Take a look at this: http://jqueryui.com/demos/draggable/constrain-movement.html