title: jQuery: Select an element only when it has no class name
body: <p>How can I use jQuery to select an element only if it doesn't have any classes?</p>
  
  <p>I'm writing a page which allows the html author to override the default jQuery action by adding a class to the element.  It should be any class at all.</p>
  
  <p>So the markup might be: </p>
  
  <pre><code>&lt;ul&gt;
    &lt;li class="override"&gt;&lt;/li&gt;
    &lt;li&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I'd like jQuery to only select the second list element because it doesn't have a class.</p>
  
  <p>I've looked at .hasClass(), but it seems to require a specific class name.</p>
  
  <p>Thanks!</p>