title: Jquery : If select has option 1 show div
body: <p>I have a dynamically created drop down and if the option &quot;Other&quot; is in that drop down i want to show div <code>#optionalmess</code></p>
  <pre class="lang-html prettyprint-override"><code>&lt;select class=&quot;VariationSelect&quot; style=&quot;width: 95px;&quot;&gt;
      &lt;option value=&quot;&quot;&gt;Select Size&lt;/option&gt;
      &lt;option value=&quot;1&quot;&gt;Example&lt;/option
      &lt;option value=&quot;21&quot;&gt;Other&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  <p>If <code>.variationselect</code> contains the option &quot;Other&quot; (or value=&quot;21&quot;) show <code>#optionalmess</code></p>
  <p>If &quot;other&quot; (value=&quot;21&quot;) is not in the drop down, I want to hide <code>#optionalmess</code></p>