1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

Advertise

JavaScript: Simple Draggable Element Persistence with jQuery

  1. Clicks today:
    0
  2. Clicks this month:
    254
  3. Overall rating:
    4.00/5

At some point you may need to create a draggable element within your web application. This is great functionality, however you may want or find that you need the element to stay in place after being dragged around. In this tutorial I will show you how to easily drag an element and make it stick, even after a page reload, by grabbing and storing its X and Y coordinates.

Comments

Your Comment

You must be logged in to post a comment.