I\'m brand new to Javascript and JQuery, so I\'ve been reading up on it and am trying to check (and set inactive) a checkbox in a parent list-item when one of the children a
Based on your posted markup, this will work:
$('ul > li ul li > :checkbox').change(function() {
$(this).parents('li:last')
.children("input")
.attr("disabled", this.checked);
});
Also note:
Try it here: http://jsfiddle.net/karim79/QfTfr/