+ 1

Create a button that creates a button that creates a button....

I'm failing to create a web app that starts with a div that containes a button which when cliced creates the exact same div with another button which when clicked creates the div again with the button etc... The button on the first div is already programmed to create infinetely other divs, but I can't make the newly created button create the same divs https://code.sololearn.com/WTrwUD5W0Ipk/?ref=app

10th Nov 2020, 9:34 PM
Rigon Kurteshi
Rigon Kurteshi - avatar
5 Réponses
+ 2
Rigon Kurteshi I changed the code a little bit ,if you don't understand something let me know https://code.sololearn.com/WcAFt1S44Z1M/?ref=app
10th Nov 2020, 9:57 PM
Abhay
Abhay - avatar
+ 1
Abhay Brilliant thank you, it works the way I intended.
10th Nov 2020, 10:04 PM
Rigon Kurteshi
Rigon Kurteshi - avatar
0
So where is the code that you need help with?
10th Nov 2020, 9:40 PM
Abhay
Abhay - avatar
10th Nov 2020, 9:44 PM
Rigon Kurteshi
Rigon Kurteshi - avatar
0
Abhay here is the code thanks. The first button already can create infinetely many other divs with buttons, but I cant make the newly created buttons create another div
10th Nov 2020, 9:45 PM
Rigon Kurteshi
Rigon Kurteshi - avatar