[Solved] How to build an HTML table using jQuery


Use this code:

$('#myTable').empty();
$('#myTable').append('<thead><tr><th>Note</th></tr></thead>');
$('#myTable').append('<tbody></tbody>');
$.each(data, function(index, valueAusData){
    $('#myTable tbody').append('<tr><td>' + valueAusData.note + '</td></tr>');
});

solved How to build an HTML table using jQuery