Change rule of detect if option is selected in select tag.