Topic: Change Search Label
nikkiduck free asked 4 years ago
Possible to change Datatables "Search:" label?
Search:Tried via custom jquery but broke search functionality.
Resources (screenshots, code snippets etc.)
Mateusz Łubianka staff answered 4 years ago
Hi @nikkiduck,
You can use this code:
<script type="text/javascript">
$(document).ready(function () {
$('#dtBasicExample').DataTable({
oLanguage: {
"sSearch": "New Text"
}
});
$('.dataTables_length').addClass('bs-select');
});
</script>
Image with the result:
Best,
Nashowan Alhadrmi free commented 1 year ago
thank you MR ENG what about (Show ) and (entries)
Grzegorz Bujański staff commented 1 year ago
You can add to the oLanguage
object "sLengthMenu": "new _MENU_ text"
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.14.1
- Device: Laptop
- Browser: Chrome
- OS: Mac OS Catalina
- Provided sample code: No
- Provided link: No