I am making an admin panel. So I want to display data from database in table when page is load. I am Confused that, I display whole table from backend side in div or put data only ??
For Example :
success:function(response){
$("#result").html(result);
}
That Will Display Whole Table In result div. That will Come From Backend side.
OR
success:function(response){
$("#result").html('<table><tr><td>'+response.name+'</td><td>'+response.password+'</td></tr>');
}
If This is The Way for printing data in table then It will Print Only the row at once. Not full data in each .
Please Help me to solve this problem.