title: jQuery css selector for table
body: <p>I'm having the following table markup:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;&lt;td&gt;foo&lt;/td&gt;&lt;td class=marked&gt;foo&lt;/td&gt;&lt;td&gt;foo&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td class=marked&gt;foo&lt;/td&gt;&lt;td class=marked&gt;foo&lt;/td&gt;&lt;td class=marked&gt;foo&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;foo&lt;/td&gt;&lt;td&gt;foo&lt;/td&gt;&lt;td&gt;foo&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;foo&lt;/td&gt;&lt;td&gt;foo&lt;/td&gt;&lt;td class=marked&gt;foo&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Several cells are marked with class <code>marked</code> - how can I select all rows which have cells with class <code>marked</code>? I know how to select all marked cells but I need the rows for the selector in order to loop through them.</p>
  
  <p>What I want to achieve is an array/JSON string which contains all data of all rows with cell indexes of the marked cells, which would look something like that:</p>
  
  <pre><code>rowdata[0] = [1];
  rowdata[1] = [0,1,2];
  rowdata[3] = [2];
  </code></pre>
  
  <p>Any ideas what's the easiest way to to it?</p>
  
  <p>EDIT: Sorry, there was a typo, I meant class <code>"marked"</code></p>