Write a JavaScript function to add rows to a table by using jQuery. code example
Example 1: Add table row in jQuery
$('#myTable tr:last').after('<tr>...</tr><tr>...</tr>');
//OR
$('#myTable > tbody:last-child').append('<tr>...</tr><tr>...</tr>');
Example 2: jquery append table row
$('#someTableID tr:last').after('<tr><td>Some data here</td></tr>');
Example 3: add table row jQuery
$('#myTable tr:last').after('<tr>...</tr>');