I'm trying to filter a datatable by setting the search input value to what I want to find:
document.querySelector("#searchinput").value = $whatiwant;
The value is being set successfully, but it doesn't affect the datatable results. I tried to submit it (but it isn't a form, so it did't work) and to simulate the enter key press (but it didn't work either and didn't return any errors). I also tried to use the DataTables filter function, but nothing seems to happen.
After all, what can I do to search/filter a datatable?