how i can duplicate div when click in link by javascript
<p>hello all i`m good php developer not learn js yet..... my problem is
i have div</p>

<pre><code>&lt;div id="test1"&gt;

&lt;/div&gt;
&lt;a href=""&gt;add div&lt;/a&gt;
</code></pre>

<p>i want when click in add div link, dublicte div and change number in id to be test2 , test3, unlimited
like the example </p>

<pre><code>&lt;div id="test1"&gt;

&lt;/div&gt;
&lt;div id="test2"&gt;

&lt;/div&gt;
&lt;div id="test3"&gt;

&lt;/div&gt;
</code></pre>
