title: Jquery Selecting Table Rows with Checkbox
body: <p>I have a table as </p>
  
  <pre><code>&lt;table id="rowclick2"&gt;
    &lt;tbody&gt;
      &lt;tr &gt;
        &lt;td class="cb"&gt;&lt;input type="checkbox" value="yes"&gt;&lt;/td&gt;
        &lt;td&gt;row 1&lt;/td&gt;
         &lt;td&gt;A&lt;/td&gt;
      &lt;/tr&gt;    
      &lt;tr &gt;
        &lt;td class="cb"&gt;&lt;input type="checkbox" value="yes" &gt;&lt;/td&gt;
        &lt;td&gt;row 2&lt;/td&gt;
         &lt;td&gt;B&lt;/td&gt;
      &lt;/tr&gt;    
      &lt;tr&gt;
        &lt;td class="cb"&gt;&lt;input type="checkbox" value="yes"&gt;&lt;/td&gt;
        &lt;td&gt;row 3&lt;/td&gt;
        &lt;td&gt;C&lt;/td&gt;  
      &lt;/tr&gt;    
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>where I want to get each cell (when the button is clicked) in a row whose checkboxes are checked </p>
  
  <p>I tried filter </p>
  
  <pre><code>  $('#test').click(function(){
  
        $('#rowclick2 tr').filter(':has(:checkbox:checked)').each(
            //get row values
        );
      });
  </code></pre>
  
  <p>It's pretty simple yet I can't see what I am missing...</p>
  
  <p><a href="http://jsfiddle.net/fRUUd/21/" rel="nofollow noreferrer">Here</a> is the jsfiddle link... </p>