Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

Placeholder for DataTables Search

$
0
0

Is there a way of adding a text placeholder to a DataTables search bar? If so, how do I do it?

I've seen where I can use the language.searchPlaceholderoption, but it isn't working in my code.

Here is my current JSON script:

$(document).ready(function() {
    $('#dataTable').DataTable( {
        "processing": true,
        "serverSide": true,
        "order": [],
        "pageLength": 25,
        "ajax": "api/server.php",
    })
});

Viewing all articles
Browse latest Browse all 81728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>