I have the following code which creates a new table.
var html = '<table>';
$.each( results.d, function( index, record ) {
html += '<tr><td>' + record.ClientCode + '</td></tr>';
});
html += '</table>';
$("#divResults").append(html);
How do I change this so instead of creating a brand new table each time, it adds tr and td data to an already existing table? Where the new data always gets added after the last existing tr/td in the table?
If you already have created html table in
#divResultsdiv, you can try:Example