I want to add the td by using array and below is the given sample. How can I complete the <tr> tag with complete details available in an array.
$(document).ready(function() {
$('#myTable > tbody:last-child').append('<tr><td>8:30am</td></tr>');
var timing = ['14:30' , '21:00'];
$.each(timing,function(i,v){
//how can i enter the remaining data using array to complete the <tr> tag
})
}
<table id="myTable" class="table">
<thead>
<tr>
<th>Morning</th>
<th>Afternoon</th>
<th>Evening</th>
</tr>
</thead>
<tbody>
<tr id="months_row">
</tr>
</tbody>
</table>