jQuery DataTables - Remove search Label

zubair syslab

I am using jquery datatable and I want to remove search text label before input and i have no experience with jquery how to remove search label ? please help me thanks.

enter image description here

Jquery datatable

$(document).ready(function() {
  $("#userTable").dataTable({
    columnDefs: [{
        "defaultContent": "-",
        "targets": "_all"
    }]
  });

//custom format of Search boxes
$('[type=search]').each(function () {
    $(this).attr("placeholder", "Search...");
    $(this).before('<span class="fas fa-search icon"></span>');
});
});
Surbhi Patel

Try With this code:

$("#dataTable").DataTable({
    language : { search : "" },
});

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related