jQuery DataTables - Filter column by exact match

前端 未结 9 2518
感动是毒
感动是毒 2020-11-27 18:06

Trying to only display exact matches to the search term entered in the search bar.

For instance, I have a search bar that filters by ID#. I want only records that m

9条回答
  •  孤街浪徒
    2020-11-27 18:38

    The current versions of Datatables supports using real exact matching on a column basis.

    table.column(i)
    .search($(this).val(), false, false, false)
    .draw();
    

    The documentation explains each flag.

提交回复
热议问题