Want to keep custom attribute of th, is there any way?
Want to keep custom attribute of th, is there any way?

Hi,
Have a question when i want to custom the dataTable usage.
When i add custom attribute to thead th element.eg:
---------------------------------------------------
[code]
column name 1
column name 2
column name 2 <!-- with custom attribute data-d1 -->
$('#datatable-example').datatable();
[/code]
---------------------------------------------------
When the datatable loaded, the custom attribute "data-d1" of th element lost. Is there a method to keep the custom attribute?
Have a question when i want to custom the dataTable usage.
When i add custom attribute to thead th element.eg:
---------------------------------------------------
[code]
column name 1
column name 2
column name 2 <!-- with custom attribute data-d1 -->
$('#datatable-example').datatable();
[/code]
---------------------------------------------------
When the datatable loaded, the custom attribute "data-d1" of th element lost. Is there a method to keep the custom attribute?
This discussion has been closed.