How to dispense with the search box

How to dispense with the search box

joellerjoeller Posts: 48Questions: 9Answers: 0

According to the article on the "dom" option the way to make the search box not show up is to declare the dataTable as

$('#example').dataTable( {
"dom": 'lrtip'
} );

I did this for my table

       $('#tblContractLots').dataTable({
           "aaSorting": [],
           "dom": 'lrtip'
       });

But the search box was still there. What am I missing.

This question has an accepted answers - jump to answer

Answers

  • ignignoktignignokt Posts: 146Questions: 4Answers: 39
    Answer ✓

    I think you can simply do this:

    $('#tblContractLots').dataTable({
        bFilter: false
    });
    
  • joellerjoeller Posts: 48Questions: 9Answers: 0

    Whoooo Hooooo! That did it!!! THANKS!

This discussion has been closed.