I set descending order for datatable but it show alert

I set descending order for datatable but it show alert

dineshptl8dineshptl8 Posts: 1Questions: 0Answers: 0

I want descending order first column so i used below code that work well but on load it show the alert box that contain
"Data Tables Warning: table_id Sample_2 cannot reinitialize Data Table: For more information about this error please see https://datatables.net/tn/2"

$(document).ready(function() { $('.qq').DataTable( { "order": [[ 0, "desc" ]] } ); } );

so how i stop that alert?

Replies

  • kthorngrenkthorngren Posts: 20,359Questions: 26Answers: 4,777

    That error states the problem is with the selector being used. Without seeing your code its hard to troubleshoot.

    Kevin

This discussion has been closed.