I am using jquery datatable plugin. What I am trying to do is to get all selected radio button values in CSV (comma separated values) format. As there are too many records, pagination is using.
When I select radio buttons on the first page, I can get all selected radio buttons values in CSV. It's working fine. When I go to second page and select radio buttons, the problem here occurs. I am getting all selected radio buttons on the second page but then first-page radio buttons value vanish. Similarly, I am getting the third page selected radio buttons values but then the second page selected values are gone and so on... I have attached an image for more elaboration:
In short, I am trying to get selected radio button values of all pages (or on those pages where user select radio buttons) in CSV format.
Following jquery code I am using to get selected radio button values:
var StateIDs = $('.status:checked').map(function() {
return this.id;
}).get().join(',');
Is there any datatable API method to get this work done?
