I created a table on my system using the jquery datatable library, but it is not working. At the end of the view I made the code declaration in javascript, however the style is not applied.
Follow the code below:
<script type="text/javascript">
$(document).ready(function () {
$('.table').dataTable({
"order": [[1, "asc"]]
});
});
</script>
E css:
<link href="@Url.Content("~/content/DataTables/css/datatables.bootstrap.css")" rel="stylesheet" />
Note: I use 3 datatables, only one does not work and the code is identical for all 3 cases.