jQuery DataTables: How to select columns


Columns can be selected using column().select() or columns().select() API methods.

You can enable single or multiple items selection using select.style option.

Selected columns can later be retrieved using the selected extension to the selector-modifier object. For example table.columns( { selected: true } ).data() will get the data of all columns which are selected in the table.

Select columns using table cells

Select columns using checkboxes

You May Also Like


Leave a Reply

You may use simple HTML to add links or lists to your comment. Also use <pre><code class="language-*">...</code></pre> to mark up code snippets. We support language-js, language-markup and language-css for comments.

This site uses Akismet to reduce spam. Learn how your comment data is processed.