'Jquery nested onclick method
I have onclick method in table tag.I also have it in my tag. I'm just trying to cancel the click method on when the delete button in is pressed.
@foreach (var item in Model.PickupTemplate.PickupBags.OrderByDescending(x => x.Id))
{
<tr id="[email protected]" onclick="RedirectToBagDetailsPage(@item.Id)" style="cursor:pointer;" class="bagList">
<td>@item.BagName - @item.BagOrderId</td>
<td>@item.TotalBillOfLadingWeightPhysical</td>
<td>@item.TotalBillOfLadingWeight</td>
<td>@item.TotalBillOfLadingCount</td>
<td><a onclick="DeletePickupBag(@item.Id)"><i class="fa fa-trash fa-2x"></i></a></td>
</tr>
}
How can i do it using jquery or javascript?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
