search

Since: DataTables 1.10

Set an initial filter in DataTables and / or filtering options.

Description

The search option allows the way DataTables performs filtering to be set during the initialisation, and to set an initial global filter.

The options that control how the filtering is performs are:

Additionally, to set an initial filter:

Type

This option can be given in the following type(s):

Example

Set an initial filter:

$('#example').dataTable( {
  "search": {
    "search": "Fred"
  }
} );

Related

The following options are directly related and may also be useful in your application development.