Select table row and check checkbox using JQuery
<p>I have a table and I want to select the rows that satisfy my criteria and check their respective checkbox. Let's say I want to get the rows with date <code>2013-03-21</code>. How can I do this using JQuery?</p>

<pre><code>&lt;table&gt;
&lt;tr&gt;
    &lt;td&gt;
        Record1
    &lt;/td&gt;
    &lt;td&gt;
        2013-03-21
    &lt;/td&gt;
    &lt;td&gt;
        &lt;input type="checkbox"/&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;
        Record2
    &lt;/td&gt;
    &lt;td&gt;
        2013-03-22 
    &lt;/td&gt;
    &lt;td&gt;
        &lt;input type="checkbox"/&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;
        Record3
    &lt;/td&gt;
    &lt;td&gt;
        2013-03-21
    &lt;/td&gt;
    &lt;td&gt;
        &lt;input type="checkbox"/&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>
