This demo can easily to help you how to move a div.And you can use this code to get the top and left for other use.