Database Examples @ http://datatables.net/examples/api/multi_filter_select.html do not work right

Database Examples @ http://datatables.net/examples/api/multi_filter_select.html do not work right

rbyrnsrbyrns Posts: 36Questions: 9Answers: 0

Using the select boxes I chose Position - Software Engineer, Office - London. Of the two records remaining - if Salary is selected to match one of the records - it reports no records found. The other selections work, just seems to be salary.
Is it the thousands separator?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Thanks for pointing that out. It isn't the thousands separator, but rather the $ that is causing the problem. You can also see this on the "Position" column if you select a value with () in it.

    I've just committed a change to DataTables to expose its internal ability to escape regular expression special characters in a new utility method $.fn.dataTable.util.escapeRegex(). The example has also been updated to use it.

    That method will be included in 1.10.4 which will likely be released next week, but the nightly is up to date now if you want to use it immediately.

    Regards,
    Allan

This discussion has been closed.