How to stop the div from moving out of the border div
Here is the code i got so far.
<script>
$(document).ready(function() {
$("#draggable").draggable({ grid: [50, 20] });
});
</script>
<div id="drag_border">
<div id="draggable" style="width:500; height:800">Drag me</div>
</div>
Thank you,