sSearch, is SEARCH box type="search" or type="text"? Why class is empty?
sSearch, is SEARCH box type="search" or type="text"? Why class is empty?
uskerine
Posts: 33Questions: 15Answers: 0
Hi, I am trying to replace SEARCH box with custom text.
So far, this is what I have used:
"sSearch": "<span>Filtro:</span> _INPUT_",
but unfortunatelly this generates:
<div id="catalogListTable_filter" class="dataTables_filter">
<label>
<span>
Filtro:
</span>
<input class="" type="search" aria-controls="catalogListTable"></input>
</label>
</div>
instead of -from a working example/template-:
<div id="DataTables_Table_0_filter" class="dataTables_filter">
<label>
<span>
Filter:
</span>
<input type="text" aria-controls="DataTables_Table_0" placeholder="Type to filter..."></input>
</label>
</div>
Which is what -AFAIK- which datatables generates by default.
I can tweak the CSSs, but I think it would be better to properly understand how to use "sSearch" and what to put there.
Thanks,
This discussion has been closed.