Have jquery filter inside live event
<p>Hi I have this following code with jquery , so it will alternate colors on each row of a table:</p>

<pre><code>  $("tr").filter(':nth-child(2n+1)').addClass('odd').next().addClass('even');  
</code></pre>

<p>but unfortunately it doesnt work when the table comes from an ajax call .. is there a way to put this into a $("tr").live...   and make it work like that? .. I have tried different aproaches like this: ( I know the syntax may not be correct ).</p>

<pre><code>$("tr").live({ 
 $("this").filter(':nth-child(2n+1)').addClass('odd').next().addClass('even')
});  
</code></pre>

<p>But doestn seem to work </p>
