jQuery DataTables hide column without removing it from DOM

后端 未结 5 1908
囚心锁ツ
囚心锁ツ 2020-12-30 01:22

I need to hide a column from showing up in jquery datatables. When I hide the column using bVisible property it disappears from the DOM.

I want to set display proper

5条回答
  •  [愿得一人]
    2020-12-30 01:38

    You can use the method hide.

    $(element).hide();
    

    To show the element, use the method show:

    $(element).show();
    

    To get the column that you want, you can use n-th child selector from jquery.

提交回复
热议问题