Repeat the div as per the input value?

i wants to repeat the div as per the input value.
for example, if the input value is 4 the div has to to append four times to the container.

i did not understand your question. can you explain it in detail?

if the user entered the 4 in the input box then my div has to repeat 4 times. like that it has to repeat as many times as user wants it to be.

Does your code follow that logic?

eg. the event listener for the input passes the value to the function that appends the divs.

no but i would like to do it.

Then what is the current code logic?

Please post the code as it is now.

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