on click event and pass value to function – Asp.net
I have an on click event that calls a function but it does not work: @foreach (var item in Model.OrderDetails) { <tr class="text-center" id="@item.DetailId"> <td class="product-remove" onclick="DeleteOrderDetail(@item.DetailId)"><a><span class="ion-ios-close"></span></a></td> </tr> } @section Scripts { <script> function DeleteOrderDetail(orderDetailId) { debugger; $.get("/Account/RemoveCart?orderDetailId=" +…