title: Save the position of a draggable div in jquery
body: <p>I have some draggable divs in my jsp which i can drag all around the page.After dragging there is one save button,On click of which i want to save the positions of grid in cookie or database whichever solution is better.Please suggest how can i do that.Below is my draggable code</p>
  
  <pre><code>&lt;div id="drag"&gt;
      &lt;div&gt;
          &lt;div&gt;
              &lt;div&gt;
                  This div is draggable
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $('#drag').draggable();
      })
  &lt;/script&gt;
  </code></pre>