views:

55

answers:

1

Hello , I have a string as 'new row'.I have a table which as 5 rows.I want to add this string after the third row of my table.How i do this using jQuery or javasript.

+2  A: 

Use .eq() and .after for this

$("#yourtableid tr:eq(2)").after("<tr><td>new row</td></tr>");
rahul