How to access fnSettings() and _('tr') when using non id selector e.g: $('table').dataTable()
How to access fnSettings() and _('tr') when using non id selector e.g: $('table').dataTable()
Suppose I got 2 tables without ids that I want to apply the .dataTable() to with the following selector:
$('table').dataTable().myplugin();//affects two tables
I wonder how can I access the fnSettings() and _('tr') of the first and second table inside my plugin, because the this._('tr') shows me the rows of the first table only and this[0]._('tr') and this[1]._('tr') are undefined.
Regards,
Daniel.
$('table').dataTable().myplugin();//affects two tables
I wonder how can I access the fnSettings() and _('tr') of the first and second table inside my plugin, because the this._('tr') shows me the rows of the first table only and this[0]._('tr') and this[1]._('tr') are undefined.
Regards,
Daniel.
This discussion has been closed.
Replies
[code]
$('table').eq(1).dataTable().myplugin();
[/code]
Proper multi table support is built into the 1.10 API (for when it is released).
Allan