javascript - Change DataTable Search Label -


been trying change search: filter: in datatable created.

i tried found:

$(document).ready(function() { otable = $('#datatable-example_filter').datatable({   "aasorting": [[ 10, "desc" ]],   "bjqueryui": true,   "alengthmenu": [[25, 50, 100, 250, 500, -1], [25, 50, 100, 250, 500, "all"]],   "spaginationtype": "full_numbers",   "olanguage": {     "ssearch": "filter: "   } }); } );  

but not working, #datatable-example_filter name of id, inside div generated datatable

the other answer uses "olanguage" using legacy datatables api. according datatables v 1.10+ documentation, syntax is:

$('#example').datatable( {   "language": {     "search": "filter records:"   } } ); 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -