How do I add click events to dynamically added elements in JQuery?
<p>I want to add <code>click</code> events do dynamically created elements. How do I do that using JQuery?</p>

<pre><code>$(function() {
   $('.class').after('&lt;a href="#" onclick="displayHideBox('1'); return false;"&gt;Text&lt;/a&gt;');
});
</code></pre>
