Looping through table rows where the table's class attr contains class1 or class2
<p>I need to loop though a table where the table rows contain either class1 or class2 , how to I go about doing this. </p>

<p>Tried the following, but not working</p>

<pre><code>var trs = $("#emailTable tr");

trs.each(function(i,n){
    var current = $(n+":has(.class1 .class2)").attr('class');
    alert(current)
});
</code></pre>
