How do you check if a select option has been selected and then hide a div?

How do you check if a select option has been selected and then hide a div?

I tried using the following code to check if the user has selected a particular option in a single select drop down has been selected, then add a class to a  div to display it but it's not working and I can't figure out why. I've tried a ton of other things to but this one seems to make the most sense.

  1. if ($("#existing-subscriber option[value='Yes']").attr('select')) {
  2. $(".information").toggleClass("show");
  3. }