It should be
$('.poSelect').click(function() {
var receipts = $(this).closest('.pohelpTbl').next('.expandBox').find(':checkbox');
receipts.prop('checked', this.checked);
});
There is no need to iterate through each of the receipts
items, you can call .prop()
directly on receipts
.
Demo: Fiddle