jquery - Customize Bootstrap datatable filter filed and put place holder -
i need customize bootstrap datatable search field , needs put placeholder in it. , need hide pagination drop down , change position of search filed left. please find attached screenshot more clarification.
i have tried following code using jquery placeholder did not work:
$('#demo-dtable-01_filter input').attr('placeholder','type in customer name, date or amount'); 
fyi, if want move position of field search left, can user dom positioning
$(document).ready(function () { $('#example').datatable({ "dom": '<"pull-left"f>rt<"bottom"ip>' }); $('#example').removeclass('display').addclass('table table-striped table-bordered'); $('.datatables_filter input[type="search"]').attr('placeholder','type in customer name, date or amount').css({'width':'250px','display':'inline-block'}); });
Comments
Post a Comment