HOW TO ADD A PLACE HOLDER IN THE SEARCH INPUT TEXTBOX
HOW TO ADD A PLACE HOLDER IN THE SEARCH INPUT TEXTBOX
czar
Posts: 1Questions: 1Answers: 0
Hello I need to add a placeholder in the search input that comes with each data table does anybody know how ?
<b>I have already tried with :</b>
oLanguage:
{
sSearch: '<em class="fas fa-search"></em>',
searchPlaceholder: "Search records"
}
Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide
Answers
Are you using Datatables 1.10.x?
Looking at the DT 1.9 to 1.10 conversion guide it doesn't seem 1.9 has a
searchPlaceholder
option. If using 1.10.x try using the current form of the options, like this example:http://live.datatables.net/bekibowe/1/edit
Kevin
work it this way my brother.