$.fn.dataTable or $.fn.DataTable

$.fn.dataTable or $.fn.DataTable

stwestwe Posts: 8Questions: 3Answers: 0

What is right? $.fn.dataTable or $.fn.DataTable

In Version 1.10 , I use :DataTable but I can see also this: $.fn.dataTable.pipeline

Answers

  • allanallan Posts: 62,301Questions: 1Answers: 10,216 Site admin

    Either. They are different objects (because of how the API works), but the plug-ins should attach themselves to both.

    $.fn.dataTable is probably safest as not all plug-ins do (they should).

    Allan

This discussion has been closed.