Best way to use to filter range of numbers?

Best way to use to filter range of numbers?

yooakimyooakim Posts: 4Questions: 3Answers: 0

Hi,
I'm a newcomer to DataTables. I have so far been able to create a nice loking DataTable that has filters based on select elements. So that bit works.

What I would like help with is how to search the datatable for a range of values. Where the min/max value is hardcoded. I have a list of ranges something like this:

0 - 435750
435750 - 1162000
x -x

I want to present thes ranges in a select dropdown (I know how to do this) But what I don't know is how to use the DataTables search method to search for a range of values. So any examples would be very much appreciated!

(I have look at the range example but I do not want to use input fields... http://www.cscc.edu/_resources/app-data/datatables/examples/plug-ins/range_filtering.html)

Answers

This discussion has been closed.