Hi George,
Interesting functionality! ??
Many online DataTables examples (like the one you provided) are using static tables. For these examples you don’t need to perform an ajax request to get the data. You already have it in your HTML.
There are two solutions:
(1) This is different in the plugin. The idea of the plugin is that you store your data in a database table (instead of a HTML table) and perform an ajax request to fetch the data from your database, which allows you to use this functionality with small, medium sized and large tables. When you add or change your search criteria, the plugin needs to send a new ajax request to the server. If you want to use date fields in your query, you need to process these your date fields in your where clause.
To add your own search logic to the plugin back-end you can use filter wpda_construct_where_clause. There is an example written by Charles Godwin which you can find here: https://github.com/CharlesGodwin/wpda-cwg-extensions
(2) If you prefer to keep thing simple there might be an alternative… You can force the plugin to fetch all table data on startup by adding json string {"serverSide":false}
to column “Table options (advanced)”. After that you can add your own javascript like the example you provided. Be careful though! You can do this with a small table, but you need the first approach for large tables.
Let me know if this helps!
Best regards,
Peter