Hello everyone!
I have a script as seen below, The field name is 'Company_ID' is the below script valid? (Note that I've called the 'name' 'Company ID' with no space)
I'm trying to understand if an error I'm getting is because I'm using it wrong, or if it's a problem with the laravel datatables plugin I'm using. Thanks!
<script>
$(document).ready(function () {
$('#trucks-table').DataTable({
processing: true,
serverSide: true,
ajax: '{{ url("admin/trucks/data") }}',
columns: [
{data: 'Company_ID', name: 'Company ID'},
]
});
})
- Jack