How do I search 1 column for an exact match?
How do I search 1 column for an exact match?
iamstevevan
Posts: 8Questions: 4Answers: 0
Better put, why does this not work?
var table = $('#example').DataTable();
table.column( 12 )
.search(val === 0 ? val:false)
.draw();
This discussion has been closed.
Answers
For those interested, I solved this by using regex.
var below95 = '^([0-9][0-4].[0-9])$'
var table = $('#example').DataTable();
table.columns(6,7,8,9)
.search( below95 , true, false )
.draw();