JQuery - Iterate over a subset of tds starting after a found class
<p>I am looking for a more jquery/cleaner way to be able to select all <code>td.some-class</code> and be able to start at 'selected' and apply some in order to the tds that follow.</p>

<pre><code>&lt;table&gt;
  &lt;tr&gt;
    &lt;td class='some-class'&gt;A&lt;/td&gt;
    &lt;td class='some-class'&gt;B&lt;/td&gt;
    &lt;td class='some-class'&gt;C&lt;/td&gt;
 &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class='some-class'&gt;A1&lt;/td&gt;
    &lt;td class='some-class'&gt;B2&lt;/td&gt;
    &lt;td class='some-class selected'&gt;C3&lt;/td&gt;
 &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class='some-class'&gt;A21&lt;/td&gt;
    &lt;td class='some-class'&gt;B22&lt;/td&gt;
    &lt;td class='some-class'&gt;C23&lt;/td&gt;
 &lt;/tr&gt;
</code></pre>

<p></p>

<p>The current way I am doing it is pretty much like:</p>

<pre><code>found = false;
$('td.some-class').each(function(){

     if ($(this).hasClass('selected')){
        found  = true;
     }
     if (found){
           # do something
     }
});
</code></pre>
