Default value for custom filtering?

Default value for custom filtering?

jack21jack21 Posts: 6Questions: 3Answers: 0

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

  • kthorngrenkthorngren Posts: 14,594Questions: 25Answers: 3,464
    Answer ✓

    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

  • jack21jack21 Posts: 6Questions: 3Answers: 0

    Thx that works

Sign In or Register to comment.