Passing searchTerm in dotnet core application.
Passing searchTerm in dotnet core application.

I have a basic installation of DataTables on my application. This the the jquery,
var table = $('#PartAvilability').DataTable({
"search": { "search": "@searchTerm" },
"responsive": true,
"ordering": false,
"autoFill": true
});
This is working fine, and the search function is working as it should.
My question is, how can I grab the info in the "search" box when a button is pressed and set that value as a predefined filter on the new page?
This question has an accepted answers - jump to answer
Answers
You can use the
search()
API to get the search value.Kevin
Awesome.. Thank you.