😄Làm cách nào để ngăn sự kiện onclick của cha mẹ kích hoạt khi nhấp vào con parent, child ? (ok)
https://stackoverflow.com/questions/1369035/how-do-i-prevent-a-parents-onclick-event-from-firing-when-a-child-anchor-is-cli
Dùng chung cho các thẻ chứ không riêng gì thẻ a 😎
$('.tbody__name').click(function(e) {
e.stopPropagation();
});
Or
$("#clickable a").click(function(e) {
// Do something
e.stopPropagation();
});
Last updated
Was this helpful?