JS element event, refresh the element
<p>If for example I have the next event:</p>

<pre><code>document.getElementById('TagSearchInput').onkeyup = function(e)
{
     //Code...
}
</code></pre>

<p>Inside the event, there is a condition where I recreate the element (<code>TagSearchInput</code>). How can I refresh the event selector, from within the event?</p>
