I am trying to update a table according to ajax respond. My update should be insert as the first row inside
Try this. check my fiddle : http://jsfiddle.net/W4gYY/3/ If you declared thead then you can use If your html look like below : then you can use otherwise without in my table. With my coding this is ha
$('#manage_user table > tbody:last').find('tr:first').before(data);
tbody:first
and working fine. You do not mention thead
that is way html treated as default tbody
Name
Address
City
Edit
Delete
sdfsdfs
dsfs
dsfdsf
aaaaaaa
dfsdf
dsfsf
$('#manage_user table > tbody:first').find('tr:first').before(data);
thead
in html you have to do following code $('#manage_user table > tbody:last').find('tr:first').before(data);