<table>
<tr>
<td>Row 1 Column1</td>
<td>Row 1 Column2</td>
</tr>
<tr class="dynamicRows">
<td>Row 2 Column1</td>
<td>Row 2 Column2</td>
</tr>
<tr class="dynamicRows">
<td>Row 3 Column1</td>
<td>Row 3 Column2</td>
</tr>
<tr>
<td>Row 5 Column1</td>
<td>Row 5 Column2</td>
</tr>
</table>
This is the Table Structure. I want to insert below Row
<tr class="dynamicRows">
<td>Row 4 Column1</td>
<td>Row 4 Column2</td>
</tr>
After the 3rd row I want to insert new row elements via Jquery at the end of "dynamicRows"
class. Please help me sort out this issue.
This code works well.
$('table tr.categories:last').after(returnData);
Try This
this will append another row in last of table
FIDDLE here
Here's a working example http://jsfiddle.net/MUdQY/1/
I am posting part of the solution here as well to better explain what's happening here: