In GMail, the user can click on one checkbox in the email list, hold down the Shift key, and select a second checkbox. The JavaScript will then select/unselect the checkboxe
this solution works for me, also ajax based for DataTables https://jsfiddle.net/6ouhv7bw/4/