2
I’m wondering if it is possible to change the default ordering of a datatable, made with the plugin https://datatables.net/
Currently he is "born" by ordering by the first column, and I wanted him to start ordering by the second:
Follows the Code:
$('#table').DataTable({
"scrollX": false,
"ordering": true,
"lengthMenu": [ [ 10, 30, 50, 100, -1], ["10","30", "50", "100","Todos"] ],
"scrollCollapse": true,
});
Table is a common table...
<table id="table">
<thead>
...
</thead>
<tbody>
...
</tbody>
</table>
Thanks in advance!
I swear I passed beaten in that part of the doc. Really worth!
– Will Knippelberg