Changed jQuery .checked to .is(':checked')