title: multiple selectbox value test using .each() jquery
body: <p>As it's clear from the following code that I am trying to loop through all select boxes but excluding some id's.</p>
  
  <p><strong>Problem is</strong> </p>
  
  <p>Without using not selector it loops through all select boxes &amp; does what it should. But when used with .not() selector, its skipping multiple type select boxes. Am i using some wrong syntax or missing something here.</p>
  
  <pre><code>$('.selectpicker:not("#Fresher, #Simple, #Advanced") :selected').each(function(i, sel){
      if (!$(sel).val()){
          $(this).closest("div:has(label)").find(".bootstrap-select").removeClass('formvalid').addClass('formerror'); 
          $(this).closest("div:has(label)").find("span.validation").removeClass('valid').addClass('error');
      }else{
          $(this).closest("div:has(label)").find(".bootstrap-select").removeClass('formerror').addClass('formvalid');
          $(this).closest("div:has(label)").find("span.validation").removeClass('error').addClass('valid');           
      }
  }); 
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;select id="Fresher" name="Fresher" multiple class='selectpicker show-menu-arrow' data-width='100%' data-size='10' title='Select Saved Search'&gt;
   &lt;option class="bs-title-option" value=""&gt;Select Saved Search&lt;/option&gt;
   &lt;option value="61"&gt;QUALITY&lt;/option&gt;
   &lt;option value="62"&gt;TEST&lt;/option&gt;
   &lt;option value="64"&gt;NEW SEARCH&lt;/option&gt;
   &lt;option value="66"&gt;NEW SEARCH&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;select id="f_Min_salary" name='Min_salary' class="selectpicker show-menu-arrow" data-width="100%" data-size="10" title='Select Min Salary'&gt;
   &lt;option class="bs-title-option" value=""&gt;Select Min Salary&lt;/option&gt;
   &lt;option value="101"&gt;&lt;1 lakh&lt;/option&gt;
   &lt;option value="102"&gt;1 lakh&lt;/option&gt;
   &lt;option value="103"&gt;1.5 lakh&lt;/option&gt;
   &lt;option value="104"&gt;2 lakh&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>apologies: i forgot to add attribute <code>MULTIPLE</code> in 1st select box. without multiple attribute it works fine as I mentioned above. for multiple select boxes it skips the validation.</p>
  
  <p><strong>UPDATE-2</strong></p>
  
  <p>Or is there any simpler way of matching current selectbox id with array of ids &amp; if found then just ignore that particular selectbox from any rule.</p>