Codeigniter: How do I add a column with checkboxes for multiple select and delete using jQuery Codeigniter: How do I add a column with checkboxes for multiple select and delete using jQuery codeigniter codeigniter

Codeigniter: How do I add a column with checkboxes for multiple select and delete using jQuery


jQuery datatables has this functionality built in if you are just wanting to know how to display the checkboxes. You will need to add:

<input name="select_all" value="1" type="checkbox">

You can check out this example on jsfiddle http://jsfiddle.net/gyrocode/abhbs4x8/


Use the square brackets in input name.

<input name="candidates[]" value="1" type="checkbox"><input name="candidates[]" value="2" type="checkbox">...