Possible to Insert Additional Class Tags Into Existing List Using Javascript?
<p>Given a webpage that has a div such as:</p>

<pre><code>&lt;div id="test" class="test"&gt;something&lt;/div&gt;
</code></pre>

<p>Is it possible to insert additional class names into the list, so that it read something like:</p>

<pre><code>&lt;div id="test" class="test test1 test2"&gt;something&lt;/div&gt;
</code></pre>

<p>?  I could easily change the text between the divs using innerHTML, but can't figure out a way to add to the class list.</p>
