This is a jQuery plugin to make html elements dragable.
Clone this repo and view the index.html by Firefox or Chrome.
<div id="dialog" style="width: 200px; height: 100px; background: yellow;">
</div>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
<script src="jquery.easydrag.js"></script>
<script>
$(document).ready(function() {
$('#dialog').easydrag();
});
</script>
MIT