Since: DataTables 1.10.1

Search input element placeholder attribute.


HTML has a placeholder attribute for input type="text" elements to provide informational text for an input control when it has no value.

This parameter can be used to set a value for the placeholder attribute in a DataTable's search input.

Note that it is possible to override this option on a per-control basis with the search feature for layout.


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


  • Value:

The default value for this parameter is an empty string, meaning that it will not be visible to the end user.


Set a placeholder:

new DataTable('#myTable', {
	language: {
		searchPlaceholder: 'Search records'

Search input with no label - just the placeholder:

new DataTable('#myTable', {
	language: {
		search: '_INPUT_',
		searchPlaceholder: 'Search...'


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