title: jquery removeClass doesn't seem to work
body: <p>While <code>firstli.hasClass('selected')</code> does work and retrieves the correct element. The removeClass function doesn't seem to remove to the class. When an element is unchecked I would like the first <code>li</code> to be unchecked as well. </p>
  
  <p>Here is the <a href="http://jsfiddle.net/eC8hF/29/" rel="nofollow">jfiddle</a> (the code is at the bottom)</p>
  
  <p><strong>Note: I want "Select All" to become unchecked when you uncheck one of the other options.</strong> </p>
  
  <pre><code>var firstli = $('.dropdown-menu.inner li').first();
  firstli.click(function(event) {   
      if (!firstli.hasClass('selected')) {    
          $('.selectpicker').selectpicker('selectAll');       
      }
      else {
          $('.selectpicker').selectpicker('deselectAll');
      }
      return false;
  });
  
  var alllis = $('.dropdown-menu.inner li:not(:first-child)');
  
  alllis.click(function(event) {
      if ($(this).hasClass('selected')) {    
          alert(firstli.hasClass('selected')); //true
          firstli.removeClass('selected');
      }
  });
  </code></pre>