language.searchPlaceholder
Search input element placeholder attribute.
Description
HTML 5 introduces 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.
Type
This option can be given in the following type(s):
Default
- Value:
The default value for this parameter is an empty string, meaning that it will not be visible to the end user.
Examples
Set a placeholder:
$('#example').dataTable( {
language: {
searchPlaceholder: "Search records"
}
} );
Search input with no label - just the placeholder:
$('#example').dataTable( {
language: {
search: "_INPUT_",
searchPlaceholder: "Search..."
}
} );
Related
The following options are directly related and may also be useful in your application development.