Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Add checkbox for mutliple action #350

Open
sujit223 opened this issue Oct 30, 2015 · 3 comments
Open

Add checkbox for mutliple action #350

sujit223 opened this issue Oct 30, 2015 · 3 comments

Comments

@sujit223
Copy link

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.

@timgws
Copy link
Collaborator

timgws commented Nov 2, 2015

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
Copy link
Collaborator

timgws commented Nov 6, 2015

@sujit223 did that help?

@sujitprasad12
Copy link

sujitprasad12 commented Jun 21, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants