Setting checked property

Setting checked property

Hi,

There are two things I'd like to do with the code below

https://jsfiddle.net/yh0tao67/39/

Firstly, I don't know how to make the checkboxes "checked". To the best of my knowledge it should be $el.prop('checked', true) but by code doesn't work.

Secondly, I can't help but think the I could condense the code down a little. The repetition of end() seems excessive.

Does anyone have any ideas?
Thanks,
Dermot