use .prop instead of .is(':selected')