Smart search for single integer

Smart search for single integer

manuelagustinluceromanuelagustinlucero Posts: 1Questions: 0Answers: 0

I have a column and when I search for 1, it brings me all of the columns that contain 1

Replies

  • allanallan Posts: 61,934Questions: 1Answers: 10,155 Site admin

    That's the "smart" search in DataTables. If you want an exact match, you either need to use a regex or a custom search plug-in.

    Allan

  • colincolin Posts: 15,176Questions: 1Answers: 2,589

    Hi @manuelagustinlucero ,

    Yep, that's the standard behaviour if you use the standard search box that's generated when the table is initialised.

    You can however you can use the API and create your own input elements, either outside the table (like the example here) or outside.

    Hope that helps,

    Cheers,

    Colin

This discussion has been closed.