title: check if Select option already exists
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/646317/how-can-i-check-whether-a-option-already-exist-in-select-by-jquery">How can I check whether a option already exist in select by JQuery</a>  </p>
  </blockquote>
  
  
  
  <p>I have </p>
  
  <pre><code>&lt;select name="saved" class="saved" multiple="multiple"&gt;
  &lt;option value="1"&gt;Hello&lt;/option&gt;
  &lt;option value="2"&gt;Goodbye&lt;/option&gt;
  &lt;option value="3"&gt;Wave&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>how would I have Jquery check if there is already an option with value="2" in "saved" in an if statement</p>
  
  <p>I am looking to see if it exists - not if it is selected.</p>
  
  <hr>
  
  <p>I am using this in a function which may operate on more than one select box. the class name of the select box is now stored as a var "theSel" - how can I modify this for that </p>
  
  <hr>