i know the no of replicants in first container(using the variabl counter). Also,now the requirement has changed. In my second container(Con2), i have one more container(say Con2Inner) which has a textbox. When i replicate Con2, the Con2Inner container should be replicated depending on the value of the variable counter. Like if the value of counter is 4,there shd be 4 Con2Inner containers inside each Con2 container. the problem is how do i do this using javascript? Is there any alternative option like using perl script?