How can we make a code using HTML, CSS, PHP, and JavaScript to add an HTML element onclick, and every time we click it just add that element over and over again? -
![Trigger an onClick event outside the child element, works for nested child components too. - DEV Community Trigger an onClick event outside the child element, works for nested child components too. - DEV Community](https://res.cloudinary.com/practicaldev/image/fetch/s--2xAWqF3N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3zw1p89dq6akod0qzf8r.png)
Trigger an onClick event outside the child element, works for nested child components too. - DEV Community
![Onclick div it will show outer div boundary instead of current div · Issue #70316 · microsoft/vscode · GitHub Onclick div it will show outer div boundary instead of current div · Issue #70316 · microsoft/vscode · GitHub](https://user-images.githubusercontent.com/6461412/54276808-84f78f80-458e-11e9-9e98-1a3c8484eeee.png)
Onclick div it will show outer div boundary instead of current div · Issue #70316 · microsoft/vscode · GitHub
![Smooth Scroll To A Desired Left Or Right DIV OnClick Via Pure JavaScript - EXEIdeas – Let's Your Mind Rock Smooth Scroll To A Desired Left Or Right DIV OnClick Via Pure JavaScript - EXEIdeas – Let's Your Mind Rock](https://www.exeideas.com/wp-content/uploads/2014/05/Smooth-Scroll-To-A-Desired-Left-Or-Right-DIV-OnClick-Via-Pure-JavaScript.jpg)