jQuery functions don't work on the elements created 'on the fly'
<p>I created some elements on the fly by JavaScript like this:</p>

<pre><code>tmpString += '&lt;a class="small_text add" id="' + variable_id + '_add" href="#" &gt; add &lt;/a&gt;';
$('#mydiv').html(tmpString);
</code></pre>

<h3>Problem</h3>

<p>jQuery functions don't work on these 'on the fly' elements, <strong>but</strong> the same jQuery functions work on other normal elements (like "a" tags in my site menu).</p>

<p>This is my jQuery code:</p>

<pre><code>$('a').click(function(){ e.preventDefault(); alert(1); });
</code></pre>
