title: jQuery - selected option value contains string
body: <p>I have an if statement where I'm trying to set a variable if the selected value of a select element does not contain "ALL"</p>
  
  <p>Here's the code I've tried, but it always returns "%"...</p>
  
  <pre><code>if(!$("select.mySelect option:selected").filter(":contains('ALL')")) {
      selected_option = $("select.mySelect option:selected");
  } else {
      selected_option = "%";
  }
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;select class="mySelect"&gt;
      &lt;option value="ALLTYPE1"&gt;All type 1&lt;/option&gt;
      &lt;option value="CAR"&gt;Car&lt;/option&gt;
      &lt;option value="VAN"&gt;Van&lt;/option&gt;
      &lt;option value="ALLTYPE2"&gt;All type 2&lt;/option&gt;
      &lt;option value="PLANE"&gt;Plane&lt;/option&gt;
      &lt;option value="HELICOPTER"&gt;Helicopter&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Any ideas?</p>