Re-running JQuery's selectors and actions after a programmatic insertion of new content
<p>Fellow JQuery hackers, hello :-)</p>

<p>Suppose you have the following code:</p>

<pre><code>$('.links').click(function(){
    //Do something
}
</code></pre>

<p>And I then insert dynamic content into a DIV's HTML content (Say, for example, after clicking a button, the new content gets inserted). This content has the "links" class. The problem is that the "click" button doesn't get registered with the newly inserted content.</p>

<p><strong>How do I tell JQuery to re-select all the elements with a "links" class and apply the above function on them? Can this be automated?</strong></p>

<p>Thanks.</p>
