I have a table and I am calling the rows using php.
foreach ($rowData as $row) : $id = $row->_kpnID; ?>
<tr class="editable details-control collapsed" data-values="action" id="{{ $id }}"...
My output looks looks like this:
<thead><tr role="row" class="selected">
<th>Checkbox</th>
<th>Ticket No</th>
<th>Name</th>
</thead>
<tbody>
<tr class="editable details-control collapsed odd selected" data-values="action" id="152808" rel="row-152808" data-key="152808" data-url="show/152808" role="row">
<td><input type="checkbox" class="ids" name="ids[]" value="152808"></td>
<td id="bookingdata" data-values="152808" data-field="_kpnID" data-format="152808">W-152808</td>
<td id="bookingdata" data-values="SIMPSONS" data-field="tGuestName" data-format="SIMPSONS">SIMPSONS</td>
</tr>
<tr class="editable details-control even expanded" data-values="action" id="152868" rel="row-152868" data-key="152868" data-url="show/152868" role="row">
<td><input type="checkbox" class="ids" name="ids[]" value="152868"> </td>
<td id="bookingdata" data-values="152868" data-field="_kpnID" data-format="152868">DPAW-152868</td>
<td id="bookingdata" data-values="Wade Harris" data-field="tGuestName" data-format="Wade Harris">Wade Harris</td></tr></tbody>
I came across to the jQuery DataTables Checkboxes plugin which allows to select and post the selected row id.
I don’t call the rows as json format. One day I would like to call them in json format but at the moment I just simply use the html code above.
I am not sure how to submit the the id(s) using Checkboxes plugin since I am not retrieving the id's via ajax. The id 152808 above is simply been called with $id in my php file. I would appreciate if you could edit the this jsfiddle and show me how to submit the id(s).