Set different ids for divs
<p>I would like to set different ids for my  divs with jquery.
For example i have 5 divs;</p>

<pre><code>&lt;div class="mydivs"&gt;&lt;/div&gt;
&lt;div class="mydivs"&gt;&lt;/div&gt;
&lt;div class="mydivs"&gt;&lt;/div&gt;
&lt;div class="mydivs"&gt;&lt;/div&gt;
&lt;div class="mydivs"&gt;&lt;/div&gt;
</code></pre>

<p>I want them like below after jquery.</p>

<pre><code>&lt;div id="1" class="mydivs"&gt;&lt;/div&gt;
&lt;div id="2" class="mydivs"&gt;&lt;/div&gt;
&lt;div id="3" class="mydivs"&gt;&lt;/div&gt;
&lt;div id="4" class="mydivs"&gt;&lt;/div&gt;
&lt;div id="5" class="mydivs"&gt;&lt;/div&gt;
</code></pre>
