Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Functionality to Edit ToDo List #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lsimmons98
Copy link

Created a function to add submit event listener to the form. Created another function to input into the form event listener which creates a list item and button to the form.

@Lsimmons98
Copy link
Author

Planning to revisit this one to address more of the stretch deliverables once I complete the required curriculum for the week.

Comment on lines +2 to +8
let form = document.getElementById('create-task-form')
form.addEventListener('submit', event => {
event.preventDefault()
handleToDo();

})
})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let form = document.getElementById('create-task-form')
form.addEventListener('submit', event => {
event.preventDefault()
handleToDo();
})
})
let form = document.getElementById('create-task-form')
form.addEventListener('submit', event => {
event.preventDefault()
handleToDo();
})
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants