title: Jquery multi-countdown .each() function
body: <p>I'm trying to make a multi-countdown on a page, which looks like :</p>
  
  <pre><code>&lt;table&gt;  
    &lt;tr id="4236377487"&gt;
      &lt;td class="remain"&gt;&lt;/td&gt;
      &lt;td&gt;Something&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr id="768769080"&gt;
      &lt;td class="remain"&gt;&lt;/td&gt;
      &lt;td&gt;Something else&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Countdown must be placed in :</p>
  
  <pre><code>&lt;td class="remain"&gt;&lt;!-- countdown --&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Each countdown starts with the row id value. Here's my code, but it doesn't work :</p>
  
  <pre><code>$(document).ready(function(){  
    $('.remain').each(function () {
       var count = $(this).attr("id");
       countdown = setInterval(function(){
       $(this).html(count + " seconds remaining!");
       if (count == 0) {
         //do something
       }
       count--; 
       }, 1000);
    });  
  });
  </code></pre>
  
  <p>Thank for your help :)</p>
  
  <p>Fabien</p>