Skip to content
Advertisement

Add task to tasklist from JS to HTML page

I am trying to input a new task. It will only allow me to add one task. If I input another it just removes the last. How can I save multiple?

HTML Code:

JavaScript

JS Code:

JavaScript

Advertisement

Answer

Try apppendChild.

JavaScript
Advertisement