Append id with the current div using javascript

Hi all,

I am creating UI Development. In that I have a div, If i add the number in the text box. It will generate new div and it has to append with current div and the ID also should look like this preview0 is for the default div and preview1 & preview2…

I am struggling here.

Kindly help me here

Here I have fiddle Link

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.