There is a click event assigned to the parent tr
class name type-shop_order
.
When clicking a child element checkbox this successfully stops the parent click event from firing.
When clicking a child element anchor tag, the type-shop_order
click event still fires.
$(".type-shop_order .shop_order_single_table input[type='checkbox']").on("click", function(e) {
e.stopPropagation();
});
$(".type-shop_order .shop_order_single_table a").on("click", function(e) {
e.stopPropagation();
});
How do i solve? The first works but the second doesn't.
The parent click event is slideDown
for a child div in a table cell.
The anchors are added dynamically with jquery btw.