Answers for "datatable Hidden columns"

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

Code answers related to "datatable Hidden columns"

Browse Popular Code Answers by Language