$("#surukle").draggable({ containment: "parent" });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script> <div id="ust" class="ui-state-highlight ui-corner-all"> <div id="surukle" class="ui-widget-content">Sürükle</div> </div>
#surukle{width: 70px; height: 70px; background:#066; color:#FFF;} #ust{width:400px;height:200px; border:1px solid #666;}