title: Discovering if any element has any class in jQuery
body: <p>I have inherited some jQuery and HTML and need to find out if any of the HTML elements have a class name of any value. I've read around a few threads and Googled but can't find anything useful.
  So in pseudo-code what I'd like is:</p>
  
  <pre><code>Loop through all HTML elements
  
  If any of them have any class at all:
      Get their class name as a string
  </code></pre>
  
  <p>Hoping that makes sense!</p>