ID replace and new ID use for further process in Jquery
<p>On "click" I am changing ID of <code>myDiv</code> to <code>myDiv1</code>.  Now I want to use new ID (<code>myDiv1</code>) which replaced <code>myDiv</code>.</p>

<pre><code>$("#myDiv").attr('id', 'myDiv1');
</code></pre>

<p>but I can't further manipulation with <code>myDiv1</code> like:</p>

<pre><code>$("#myDiv1").mouseover(function() {
    $('#bottom_link').show(400);
});
</code></pre>
