How to extract class from body element using jQuery?
<p>I'm new to jQuery and still learning the proper way to do things. What is the best way to extract a class from the body element?</p>

<p>Specifically I am trying to extract the Post ID of a WordPress page (which looks like this: </p>

<pre><code>&lt;body class="single single-project postid-20 logged-in"&gt;
</code></pre>

<p>So I can insert it into the new 3.5 uploader.</p>
