Answers for "hide columns datatables responsive"

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

Browse Popular Code Answers by Language