I'm creating some checkboxes in my laravel view as shown below :
<table class="table table-condensed table-bordered table-hover">
<tr>
<th>Report</th>
<th>Type</th>
<th>Date</th>
</tr>
@foreach($tableContent as $data)
<tr>
<td><input type="checkbox" name="report" value="reportValue" id="" > </input></td>
<td><b></b></td>
<td></td>
</tr>
@endforeach
</table>
<a class="btn btn-default" href="/deletereport/"">Delete</a>
So when user click the delete button, it will gonna call the route /deletereport/idcheckedbutton...
But I have no idea how do I get the selected button Id, Please help...:v
Thanks in advance.. :)
Aucun commentaire:
Enregistrer un commentaire