cyberhobo / ColumnFilterWidgets

This is an add-on for the DataTables plugin for jQuery that creates filtering widgets based on the data in table columns.
69 stars 34 forks source link

Populating the default selection from the ColumnFilterWidgets dropdown based on a variable #47

Open edsub opened 3 years ago

edsub commented 3 years ago

I am using the TablePress Wordpress plugin that relies on the Datatables plugin for jQuery.

I am looking for a way to put a dynamic value (string of YYYY-MM that I have stored in a variable) into the selection from the ColumnFilterWidgets dropdown.

As I am lacking JS coding skills myself, I am looking for some hints (or ready to copy/adapt code) to accomplish this.

Any help is much appreciated.