$(\'.example tbody\').on(\'click\', \'tr\', function (){ var id = this.id; var index = $.inArray(id, selected); if (index === -1) { selected.pus
Guruprasad code (perfect) with small handy updates.
var table= $('#YourTableName').DataTable(); $('#button').click(function () { var arr = []; $.each(table.rows('.selected').data(), function() { arr.push(this["ColomnName"]); }); });