Filter rows based on some function
<p>I got the following table:</p>

<pre><code>&lt;table&gt;
&lt;tr class="applyFilterOnThis"&gt;
    &lt;td&gt;&lt;/td&gt;
    &lt;td&gt;&lt;span class="timeAdded"&gt;15.03.2011 05:42&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="applyFilterOnThis"&gt;
    &lt;td&gt;&lt;/td&gt;
    &lt;td&gt;&lt;span class="timeAdded"&gt;15.03.2011 08:42&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="applyFilterOnThis"&gt;
    &lt;td&gt;&lt;/td&gt;
    &lt;td&gt;&lt;span class="timeAdded"&gt;15.03.2011 15:42&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>Now I want to add a class to every row that has a timeadded that is more than, say 6 hours from the client time. (If time is now 15.03.2011 17:00, only the last row gets the class added.</p>

<p>This is what I was looking for (don't know about the 'Filter' function):</p>

<pre><code> $('.applyFilterOnThis').Filter(someFunction()).addClass('markAsFiltered');
</code></pre>

<p>(I know the actual parsing of the date is a separate issue, so I'd be happy if someone just give a hint on how to use the filter function)</p>

<p>Thanks for any help</p>

<p>Larsi</p>
