How to get the first value of class attribute of a tag?
<p>Let's say the body tag has a few class attributes:</p>

<pre><code>&lt;body class="html logged-in frontpage no-sidebar"&gt;
...
&lt;/body&gt;
</code></pre>

<p>Currently, I use jQuery to get all class attributes of body tag using:</p>

<pre><code>$('body').attr('class');
</code></pre>

<p>I want to get the very beginning/first class attribute (which is 'html' class here).
How?</p>
