Copy class name in javascript
<p>I need a way to copy the class name from one object to another. </p>

<p>For example </p>

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

*run code*

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

<p>I'm betting this is a pretty simple question, but I'm relatively new to Javascript.</p>

<p>Any help is appreciated.</p>
