Hi, How can I choose all checkboxes by selecting the head checkbox button, in my code? I want this part to remove some items in Laravel. my code is : plz help me.
....
<div class="indexnewpro">
<table class="table table-striped table-bordered">
<thead>
<tr >
<th class="th_pr">#</th>
<th class="th_pr">1</th>
<th class="th_pr">2</th>
<th class="th_pr">3</th>
</tr>
</thead>
@foreach($product as $key=>$value)
<tr>
<td><input type="checkbox" name="delid[]" value="" class="checkboxs"></td>
<td class="td_pr"></td>
<td class="td_pr" style=" text-align: center;"></td>
<td class="td_pr" style=" text-align: center;"></td>
</tr>
@endforeach
<input class="btn-primary" id="checkall" type="checkbox">select all
<button type="submit" class="btn-warning">remove selected</button>
</table>
</div>
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2FyNxze
via IFTTT
Aucun commentaire:
Enregistrer un commentaire