I am experiencing a strange issue with DataTables. In the docs sometimes it shows the class name with a capital D:
var table = $('#example').DataTable();
Other times with a lowercase D:
var table = $('#example').dataTable();
Both work.. most of the time. My issue is two functions are conflicting. One needs the class to be lowercase and one needs uppercase.
For example, the search function needs uppercase (works):
If I use lowercase (breaks):
I also want to use the fnSettings function on the same table... And of course it needs lowercase so it breaks my search code.
Both give an error 'Uncaught TypeError: undefined is not a function'. I am totally confused. If you look at their examples in the docs, some are uppercase and some are lowercase.