I have a table which looks like the following…
<table width="100%" >
<tr class="odd">
<td><img src="icn_pdf.gif"></td>
<td><strong>Application Form</strong></td>
<td><a href="/Form.pdf" class="smd"></a></td>
</tr>
<tr>
<td><img src="icn_pdf.gif"></td>
<td><strong>Application Form</strong></td>
<td><a href="/Form.pdf" class="smd"></a></td>
</tr>
<tr class="odd">
<td><img src="icn_pdf.gif"></td>
<td><strong>Application Form</strong></td>
<td><a href="/Form.pdf" class="smd"></a></td>
</tr>
<tr>
<td><img src="icn_pdf.gif"></td>
<td><strong>Application Form</strong></td>
<td><a href="/Form.pdf" class="smd"></a></td>
</tr>
</tbody></table>
Currently you can see each ‘document’ on each row. What I want to do via jQuery is loop through and have two rows with two documents in. So 6 tds in each row?
Please check this fiddle link. http://jsfiddle.net/MgSsy/
I think this is what you want.
I did this as per my understanding about your code.