Dynamic data in searchbox
Dynamic data in searchbox
Hi,
How can i enter dynamic data in searchbox?
I have to use double quotes and static value to make it work. Is it possible to use dynamic data without quotes?
Like this :
$('#example').dataTable({
"search": {
"search" : name,
}});
This discussion has been closed.
Replies
This is from the
search.searchdocs:As you noted it needs to be a string.
You can use the
search()API insideinitCompletefor a dynamic search. For example:Kevin