We have a Table grid with multiple columns, one of which is a Select Box (CheckBox). The expected behavior is that when a row is clicked, the respective CheckBox should get checked, and clicking on the CheckBox itself should update it.
I tried implementing the following code -
$("#table_id").on("click", ".table-body-row", function(){
$(':checkbox', this).trigger('click');
});
It works for rows, but when I click on the respective CheckBox, it gets clicked twice: -First by the Mouse Click on the CheckBox itself -Second when the above function is called
Can anyone provide help? Is there another way to handle this scenario?