set a new id for a class in javascript
<p>I have a class as</p>

<pre><code> &lt;div class="group-left article_left"&gt;
</code></pre>

<p>I need to add a id for this class dynamically using JavaScript.</p>

<p>i have added the following code </p>

<pre><code>    var thediv = document.getElementByClass("#group-left");
     thediv.id = "pad_id";
</code></pre>

<p>But the id is not appearing in my code.Can anyone help me.</p>
