What is the best method in jQuery to add an additional row to a table as the last row?
Is this acceptable?
$(\'#myTable\').append(\'
-
2020-11-21 06:17
What if you had a and a ?
Such as:
Then it would insert your new row in the footer - not to the body.
Hence the best solution is to include a tag and use .append, rather than .after.
$("#myTable > tbody").append("| row content | ");
|