Datatable icon indicating copy to clipboard operation
Datatable copied to clipboard

Add checkbox for mutliple action

Open sujit223 opened this issue 10 years ago • 3 comments

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". 111e 112

Thanks you.

sujit223 avatar Oct 30 '15 11:10 sujit223

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)
    });
});

timgws avatar Nov 02 '15 01:11 timgws

@sujit223 did that help?

timgws avatar Nov 06 '15 01:11 timgws

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.

sujitprasad12 avatar Jun 21 '17 09:06 sujitprasad12