Let\'s say I have a that contains some random elements, but there is one element I\'ve created with this unique selector : $(\'.myUniqueElemen
that contains some random elements, but there is one element I\'ve created with this unique selector : $(\'.myUniqueElemen
$(\'.myUniqueElemen
There is no need to call $ more than once, just move the element to the end of its parent:
var myEl = $('.my-el-selector'); myEl.appendTo(myEl.parent());