r/JavaScriptTips • u/Varun_123 • Jun 04 '22
Generating new HTML elements on the page after taking an input
I am trying to build something where after a button press, I want to load a new HTML element (input type). As of now, I am using the DOM model, but is there any way where I can pre-write the HTML code beforehand and only make it visible after I press the button?
4
Upvotes
2
u/ray_zhor Jun 04 '22