Add checkbox for mutliple action
Hi
Thanks a lot for an awesom package for laravel.
I would like to know is there any possibility to add checkbox field where one can select multiple data and perform any type of action (e.g. Delete)?
I tried to add multiple check boxes and also succeded but cannot run the script that checks all the checkbox by clicking "check all".
Thanks you.
I use the following javascript code for my select all checkbox:
$('.selectCheckbox').click(function() {
var checkboxes = $(this).closest(".panel").find(".dataTable").find('input[type="checkbox"]');
var selected = !!($(this).attr("checked"));
checkboxes.each(function() {
$(this).attr("checked", selected)
});
});
@sujit223 did that help?
Nope this didn't helpded. I tried this recently again. Its just that the checkboxes under the datatables doesnot gets checked automatically. Also I lost my last account.