Draggable constrain in box

Draggable constrain in box


Hi.. I searched around for a while but no luck... I assume this is
pretty straight forward but I can not figure it out. I am having
trouble with my draggable divs being able to be dragged anywhere in
the browser window. How do I constraint it to its parent div? For
example the html :
<div id="dragbox">
<img src="drag1.png" class="drag1" alt="zacs phone" />
</div>
How would I constrain the drag1 image to the boundaries of the dragbox
div? I think it has something to do with appendTo but I dont get
it...
Thanks a lot for any help with this.