I applied the following code so that the rows of the table check / uncheck the checkbox of the child when clicked. Now I found that when I click on the checkbox inside the line, it performs a check. Maybe it checks the click (standard function) and then jquery takes the click event and takes it off the screen? How can i fix this?
$("tr").live("click",function() {
var checkbox = $(this).find("input[type='checkbox']");
if( checkbox.attr("checked") == "" ){
checkbox.attr("checked","true");
} else {
checkbox.attr("checked","");
}
});
source
share