How to disable searching in specific DataTable columns?

后端 未结 4 614
面向向阳花
面向向阳花 2021-01-20 16:13

I\'m using successfully this code

function refreshDataTable() {
        // The table is made sortable
        $(\'#order_proposal_table\').DataTable({
              


        
4条回答
  •  再見小時候
    2021-01-20 16:40

    I excluded the second column from search by using the bSearchable false

    lang-js
    "aoColumns": [
                    null,
                    { "bSearchable": false }
                ]
    

    Hope you found this code helpful.

提交回复
热议问题