Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="ingredients" class="ingredients">
- <h2 class="tk-freight-sans-pro">Ingredients</h2>
- <input type="text" placeholder="Ingredient">
- <input type="text" placeholder="Ingredient">
- <input type="text" placeholder="Ingredient">
- <br>
- <button class="button" onclick="addIngredient();">Add Ingredient</button>
- </div>
- function addIngredient() {
- var list = document.getElementById("ingredients")
- list.innerHTML += "<input type="text" placeholder="Ingredient">"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement