JQuery Remove problem
<p>When I try to use $element.remove() it doesn't work because the element isn't inside the dom yet. I have tried to use $element.html("") but that does only remove the inner html. I would like to clear the whole object.</p>

<p><strong>edit</strong></p>

<p>an event that tells me when the element gets added to the dom would help, because then I could do the element.remove() on it. </p>

<p><strong>edit 2</strong></p>

<p>Ok, some more information about the problem. I got 2 sortable lists (not connected for multiple reasons) and I have added functionlity to move elements between these two sortable lists. But direclty after I have added the element to the other list, IE moves it back to the original list. </p>

<p>So I thought that I copy the item to the other list (instead of moving it) and remove the old one. But because of the element being in the memory, the original list just adds it again. </p>

<p>That's why I thought that if I clear the element (turn it into "") then it doesn't mather if it gets added to the original list again, because it's just an empty string. </p>

<p>Maybe there is a better solution to this problem? Suggestions?</p>
