Use the .datatable class to initialize datatables. code example
Example: Datatables Initialisation
$(document).ready( function () { $('#myTable').DataTable();} );
$(document).ready( function () { $('#myTable').DataTable();} );