How to check an element retrieved from DOM is still present in DOM
<p>Let's say I got a DOM element, as a param of an event, for example click.</p>

<pre><code>$(document).click(function() {
    myElement = $(this);
});
</code></pre>

<p>How can I check later that myElement is still in the DOM?
I can't use .length or any other things like that because it still refer to the saved element and the state of the DOM at this moment, right?</p>
