Default value for custom filtering?
Default value for custom filtering?
The custom filtering laid out here works well: https://datatables.net/examples/plug-ins/range_filtering.html
I'd like to load my table with a default number, and have that displayed in the text field upon table draw (so the user knows there's a filter on). What's the best way to do that?
This question has an accepted answers - jump to answer
Answers
Before initializing Datatatbles make sure the min and max inputs have the starting values you want to use. In the example the search plugin is created before Datatables initializes so it will run as part of the initialization and pickup the input values.
Kevin
Thx that works