You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First plan how your JavaScript will work with the HTML
// Problem: User interaction does not provide result// Solution: Add interactivity so the user can manage daily task// Planning// Add a new task// When the button is pressed we want to create a task// Create a new list item with the text from #new-task:// Input checkbox [checkbox]// Label// input [text]// button with class edit// button with class delete// Each of this elements, needs to be modified and appended// Edit an existing task// When the edit button is pressed// If the class of the parent is editMode// Switch from the class editMode// Label text become the input's value// else// Switch to editMode// Input value becomes the label's text// this means toggle editMode on the parent// Delete an existing task// When the delete button is pressed// Remove the parent list item from the ul// Mark a task as complete// When the checkbox is checked// We want to append the task list item to the #completed-task// Mark a task as incomplete// When the checkbox is unchecked// Append the task list to the #incomplete-tasks