remove html table row by after checking chekbox that in row
<p>How to remove using jquery html table row after checking checkbox that in this row?</p>

<pre><code>&lt;table  id="mainTable"&gt;
    &lt;tr&gt;
        &lt;th&gt;
            name
        &lt;/th&gt;
        &lt;th&gt;
            remove
        &lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
            &lt;input type="text" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;input type="checkbox" id="chb1" /&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
            &lt;input type="text" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;input type="checkbox" id="chb2" /&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>for example, i select checkbox with id chb2, and want that second row is removed</p>
