jQuery: manipulating through children to check the checkbox in a table row
- by gsquare567
$("tr.clickable").each(function() {$(this).click(function() {
$(this).children("td:first > input").is(":checked") ?
$(this).children("td:first > input").removeAttr("checked") :
$(this).children("td:first > input").attr("checked","checked");
})});
this only checks the first row…