I have one event attached to on row click and one event attached to on checkbox change inside the row.
How to prevent that row click is fired first?
$(document).on('click', 'table tr', function() {
console.log('row');
})
$(document).on('change', 'table tr input[type="checkbox"]', function() {
console.log('chk');
})
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<table>
<tr>
<td>
<input type="checkbox">
</td>
</tr>
</table>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
</body>
</html>