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? -
![javascript - How to enable button onClick functions and java script in wordpress post - Stack Overflow javascript - How to enable button onClick functions and java script in wordpress post - Stack Overflow](https://i.stack.imgur.com/LNSyb.png)
javascript - How to enable button onClick functions and java script in wordpress post - Stack Overflow
![New JavaScript learner here: why must the if statement be inside the onclick function for the alert to appear? : r/learnjavascript New JavaScript learner here: why must the if statement be inside the onclick function for the alert to appear? : r/learnjavascript](https://preview.redd.it/plhyxl12syt71.jpg?auto=webp&s=a058b8e4569cca43f4bc91be0a5bf15d18ac81c6)