Non-jQuery initialisation
As of v1.11, DataTables can be initialised without using jQuery through the new DataTable()
constructor. This class takes two parameters:
- A DOMString selector or HTML elements to pick the table(s) from the DOM.
- An object of DataTables options.
The constructor will return a DataTables API instance allowing manipulation of the table.
Please note that while this constrctor does not require you to write any jQuery code, DataTables will still use jQuery as a dependency.