nested loop with jQuery eq()
<p>I have the following loop:</p>

<pre><code>for (i = 0; i &lt; Count; i++) {

            $('td').eq(i).prepend($('th').eq(???).text() + '&lt;br /&gt;');
}
</code></pre>

<p>I will always want the <code>td</code> element at index <code>i</code>, however I only want to prepend the <code>th</code> element that is at index 0, 1, or 2.</p>

<p>Example:<br>
         prepend th 0 to td 0<br>
         prepend th 1 to td 1<br>
         prepend th 2 to td 2<br>
         prepend th 0 to td 3<br>
         prepend th 1 to td 4<br>
         prepend th 2 to td 5  </p>

<p>How can I perform this loop inside of my eq()? Is eq() the correct method to accomplish this? Thanks.</p>