HTML
<tr url="domain.com">
<td><input type="checkbox" name="checkbox[]" method="post" value="" class="checkbox" /> </td>
</tr>
JS
$("tr").not('.checkbox').click(function(){
window.location = $(this).attr("url");
});
Want to disable click function inside clickbox, but code above doesn’t work: it redirects even when I click in checkbox. Where did I go wrong?
Simply stop event propogation on checkbox like below,
Fixed the typo.