Is there any way to programatically search a JQuery Data Table using the search box?
I currently have something like this:
$('#calibhistory_click').tab('show');
setTimeout(function() {
$('#calibhistory').find('input[type="search"]').val("hi");
}, 5000);
This does input the text into the box however it does not search because I believe the search function only runs if it senses keyboard input via the user. Is there any way to programatically call the search function using JS/JQuery?
Thanks in advance.
Edit:
Here's how I initialize my table in my main.js
$(".dynamic-wide-table").DataTable({
"processing": true,
"scrollX": true,
"scrollY": 530,
"scrollCollapse": true,
"lengthMenu": [
[100, 400, 1000, 5000, -1],
[100, 400, 1000, 5000, "All"]
]
});
The problem is, there are MANY of these tables per page. How do I access the table I want?