jquery datatables hide column

前端 未结 13 1391
灰色年华
灰色年华 2020-12-02 11:59

Is there a way with the jquery datatables plugin to hide (and show) a table column?

I figured out how to reload the table data: using fnClearTable and <

13条回答
  •  悲哀的现实
    2020-12-02 12:29

    With the api you can use

    var table = $('#example').DataTable();
    
    table.column( 0 ).visible( false );
    

    Look this info:

    enter link description here

提交回复
热议问题