[html]
<div class="class1">
<input type=checkbox value="foo"/>Foo
</div>
<div class="class1">
<input type=checkbox value="bar"/>Bar
</div>
[/html]
[javascript][/javascript]
$(‘.class1 input’).live(‘change’, function () {
var n = $(this).parent().next().find(‘input:checkbox’);
if ($(this).attr(‘checked’)) {
n.attr(‘checked’,true);
} else {
n.attr(‘checked’,false);
}
});
[javascript][/javascript]