This page requires the DataTables jQuery plugin. Put the ColumnFilterWidgets
directory under DataTables/extras/
.
If a table cell lists several values, by default the entire list will be used in the filter widget. By setting the oColumnFilterWidgets.sSeparator
option, lists of values in a cell will be split into individual filters. The separator can be a string (maybe a comma), or a regular expression. This example separates values on a sequence of one or more spaces around a forward slash.
$(document).ready( function () { $('#example').dataTable( { "sDom": 'W<"clear">lfrtip', "oColumnFilterWidgets": { "sSeparator": "\\s*/+\\s*" } } ); } );