- Get the form, input and the tasks elements with the querySelector
- Created event listener to the submit event of the form
- Get the value of the input
- Create the task div element
- Create the content div element
- Append the content to the task
- Create the text input element
- Set the task value for the input
- Append the input to the content div
- Create the actions div element
- Create the Edit button element
- Create the Delete button element
- Append the buttons to the actions div
- Append the actions div to the task div element
- Append the task div to the tasks element
- Create event listener to the Edit button
- Create event listener to the Delete button
gaborkomaromi / js_ws_beginner_homework_todo_list Goto Github PK
View Code? Open in Web Editor NEWThis project forked from rolandpakai/js_ws_beginner_homework_todo_list