jQuery DataTables Plugin Callback
I need to cache the html of the table before applying DataTable plugin. I used to do it by caching the html and after it applying the plgin:
v开发者_JAVA技巧ar originalTableHtml = escape($('#DataTable').parent().html());
$('#DataTable').dataTable(DataTableOpts);
However, now I need to do it somehow in another to do it. Is there any way to apply a callback "on DataTable Init"..?
Thanks
I have solved it by editing the plugin and creating a "before init" callback.
精彩评论