I'm having issue with appending my data to table body.
Code
$.ajax({
type:'GET',
url:'{{url('dashboard/customer-groups')}}/'+ordID,
success:function(data){
console.log(data); //screenshot below
}
});
screenshot
data returned by ajax code above in 2 categories (group and customers)
HTML
<table id="data-table" class="table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th>Name</th> // from customers array
<th>Company</th> // from customers array
<th>Province</th> // from customers array
<th>City</th> // from customers array
<th>Email</th> // from customers array
<th>Industry</th> // from customers array
<th>Group</th> // from group
</tr>
</thead>
<tbody id="table_customer"></tbody>
</table>
Any idea?