Test Case Boilerplate

Fork this way...

by TJ VanToll

HTML

<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/jquery-ui-git.css">
<div id="container">
    <div id="child"></div>
</div>

CSS

#container  {
    border: 1px solid black;
    height: 400px;    
    position: relative;
    width: 400px;
}
#child {
    width: 100px;
    height: 100px;
    border: 1px solid black;
}

JavaScript

$( "#child" ).resizable().draggable({
    containment: "parent"
});