Get table id while export if multiple table on page
Get table id while export if multiple table on page

Hi all,
I have multiple tables on the same page, while export i want to name the file based on the table id, so I wanted to get the id of the table from where the export is happening. below is the test case.
http://live.datatables.net/sihitome/1/edit?html,js,output
This might not be the correct way of doing but this is how the code structure is, so i have to follow the same.
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You could do something like this - it's using a global variable and isn't particularly elegant, but it's doing the trick,
Colin
Great!... Thanks Colin.