How to use input from the search filter as the name for csv download file
How to use input from the search filter as the name for csv download file
rasikah12
Posts: 4Questions: 2Answers: 0
in DataTables
I want to download the datatable in csv/excel format but the name of the file should be coming from the search filter. I tried to search into lot of articles but couldn't find anything. Can anybody please suggest me a way as how I can do it? I am new to JS and trying to build the code but couldn't build anything yet.
This question has an accepted answers - jump to answer
Answers
This example shows how to change the filename (use
filename
). To get the value from the search filter, you can usesearch()
,Colin
Thank you Colin! It helped!