I have following Code in my view.
@foreach($categories as $category)
<tr class="cat-row">
<td class="cat-id">{{$category->id}}</td>
<td>{{$category->name}}</td>
<td><a href="" class="btn btn-danger">Get ID</a></td>
</tr>
@endforeach
If I want to get a simple alert with the id of the current row by clicking the Get ID button, what should I do in jquery?