Answers for "hide a column in datatable jquery"

2

hide datatable columns using datatable predifine function

$(document).ready(function() {
    $('#example').DataTable( {
        "columnDefs": [ 
            {
                "targets": [ 2 ],
                "visible": false,
                "searchable": false
            },
            {
                "targets": [ 3 ],
                "visible": false
            }
        ]
    } );
} );
Posted by: Guest on May-24-2021
0

Datatable hide columns

"columnDefs": [
            {
                "targets": [1,2],
                "visible": false,
                "searchable": false
            }
        ]
Posted by: Guest on October-07-2021

Code answers related to "hide a column in datatable jquery"

Browse Popular Code Answers by Language