Posted By

thiswayup on 11/25/10


Tagged

javascript jquery


Versions (?)

quick way to move elements around using jquery


 / Published in: JavaScript
 

  1. //store the element temporaily
  2. var t= $('#badlyPlaceElement').clone();
  3. //remove the original
  4. $('#badlyPlaceElement').remove();
  5. //add it back in the right place
  6. $('#newPlace').prepend(t[0]);

Report this snippet  

You need to login to post a comment.