jQuery Move-able Div

jQuery Move-able Div Today, I was helping a friend who is learning web development.  He was trying to create a way to move a div element using click and drag.  Here is how we implemented it… <head> <title>jQuery Move-able Div</title> <link href=’./includes/styles.css’ rel=’stylesheet’ type=’text/css’ /> <script src=’./includes/jQuery1.6.4.js’ type=’text/javascript’></script> <script type=’text/javascript’> var x1,y1,x2,y2,distX,distY; $(document).ready(function(){ $(‘#moveableDiv’).mouseover(function(){ $(this).css(“cursor”,”pointer”); …

jQuery Move-able Div Read More »