How to override the click event of checkbox with parent

We need to add event.stopPropagation() to a click event handler for the check-box elements to stop the click event from parent applied to checkbox and making it uncheck.

$(‘.selectItem’).on(‘click’, function (event) {
event.stopPropagation();
});

$(‘.crudRow’).click(function() {
$(this).find(‘.selectItem’).trigger(‘click’);
});

Leave a Reply