suppose i have table and i want to append data in the middle of table through jquery.
here is my table code html
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
here i need to append tr with jQuery
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
is it possible with jquery? if so then please guide me.
if i can populate then i can do like
for (var i = 0; i < data.d.length; i++) {
$("#NamesGridView").append("<tr><td>" + data.d[i].FirstName +
"</td><td>" + data.d[i].Age + "</td></tr>");
}
}
please guide thanks
Edit Based on comment:
Example here: JSFiddle