default sorting of table on page load
default sorting of table on page load
Hi,
I have multiple table on my webpage. I would like to sort one table based on third column but it is not working. I don't know where I am doing wrong.
Here is my code:
$(document).ready(function() {
var table5 = $('#table5').dataTable({
"bJQueryUI": true,
"bLengthChange": true,
"bFilter": false,
"aaSorting": [[2,'desc']],
});
position
Residue
Score
pred
Coscore
order pred
Conscore
{{for row in data[2:]:}}
{{=row[0]}}
{{=row[1]}}
{{=row[2]}}
{{=row[3]}}
{{=row[4]}}
{{=row[5]}}
{{=row[6]}}
{{pass}}
Please let me know where I am doing wrong.
Thanks
I have multiple table on my webpage. I would like to sort one table based on third column but it is not working. I don't know where I am doing wrong.
Here is my code:
$(document).ready(function() {
var table5 = $('#table5').dataTable({
"bJQueryUI": true,
"bLengthChange": true,
"bFilter": false,
"aaSorting": [[2,'desc']],
});
position
Residue
Score
pred
Coscore
order pred
Conscore
{{for row in data[2:]:}}
{{=row[0]}}
{{=row[1]}}
{{=row[2]}}
{{=row[3]}}
{{=row[4]}}
{{=row[5]}}
{{=row[6]}}
{{pass}}
Please let me know where I am doing wrong.
Thanks
This discussion has been closed.
Replies
add name="table5" ?