I don’t know what is the difference between dataTable
and DataTable
functions, but your code worked when I initialized the data table using the second function.
oTable = $('#tblCasesMain').DataTable({ ...
Here is the fiddle, which only gives an error on format
function which is not defined.
Note: I have changed that function name as per this example.
Update:
I have done a bit of research and got the answer. Take a look at the Upgrade note here which says the following:
If you are upgrading from DataTables 1.9 or earlier, you might notice that a capital D is used to initialise the DataTable here. $().DataTable() returns a DataTables API instance, while $().dataTable() will also initialise a DataTable, but returns a jQuery object.