select all checkbox jquery datatable pagination

On top of the list, there's also a 'select/unselect all' checkbox. How do you remove all the options of a select box and then add one option and select it with jQuery? Later in 2016 I wrote I plug-in jQuery DataTables Checkboxes that simplifies handling of checkboxes with jQuery DataTables where it has become configurable option to use “Select All” to select checkboxes on current or all pages. You can also read about AngularJS, ASP.NET, VueJs, PHP. ... jQuery Mobile 1.4.4 Framework