Submit button for search with "return" option true
Submit button for search with "return" option true
yfischer
Posts: 2Questions: 2Answers: 0
To avoid having an http request sent each time the user presses a key, I am using the "return" option to have the results refreshed only after the user presses "enter"
jQuery('.myselectore').dataTable({
search: {
return: true
},
serverSide: true,
...
});
How do I externally trigger submitting the search or add a submit button.
Answers
Use the
search()
API to programmatically execute searching.Kevini