Changing jQuery function call

[BF] Function call attr changed to prop where checking if checkbox is checked