Support the ongoing development of Laravel.io →
Requests Input
Last updated 2 years ago.
0

Maybe I am wrong but I don't see an HTML form here and it looks like you are trying to submit the checkboxes using a link.

<form action="{{ route('user.tasks.destroy',array( $Task->id )) }}" method="post" >
<div class="dropdown">
        @foreach($LIST_OF_ITEMS_TO_DELETE as $ITEM_TO_DELETE)
        <input id="check1" name="deleteCheckedTask[]" type="checkbox" class="check" value="{{$ITEM_TO_DELETE->id}}">
        <span class="caret-hover caret"></span>
        @endforeach
    <ul class="dropdown-menu" aria-labelledby="selDelete" role="menu">
        <li><input type="submit" value="Delete Selected" /></li>
    </ul>   
</div>
</form>
0

Hi thanks for your answer and I see what you mean. I wanted to test your code but it changed the layout of the buttons: link: http://i.imgur.com/ESqYpVe.png

I think it's because of the submit button (which I also don't see in the browser for some reason). I'm really tired at the moment, so I'm going to sleep now.

0

Why do you have the checkbox in a button?

I would have one checkbox per row, then a single "delete selected" button which submits the form

0

Sign in to participate in this thread!

Eventy

Your banner here too?

superzaky superzaky Joined 9 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.