By the end of this, students should be able to:
- Structure a jquery app to manipulate DOM elements.
- Append items to a list.
- Modify the status of items in a list - Bonusπ.
- Remove Items on a list - Bonusπ.
- Persist Items to
localStorage
- Bonusπ.
Grab your starter code here, and let's get started!
- Create a single page todo app, where you can add items to a list (things to do). Everything should go away if the page is refreshed.
- Besides jQuery, your project will rely on the basic use of forms, here's some useful documentation for your to check out.
- Think of ways you could target your form with jQuery, how can you grab text inputted from the user? π€
- Consider using event listeners that respond to user-triggered events such as a
.click()
,.dblclick()
, or a keypress likeenter
. - jQuery has some of the best documentation on the web. Check it out here π .
- Be sure to test your jQuery logic in steps with
console.log()
, you'll detect faults faster this wayπ‘. - Keep in mind that getting stuck is part of the process, work in pairs to find a solution and innovate your way to success.
- When in doubt, use Slack! π
Congratulations for getting this far, now that you're able to interact with the DOM with jQuery, let's add these features...
- Add functionality that allows you to mark each item on the list as complete, and/or be deleted from the list.
- Create a way to edit the name/text of a todo item when you click on it.
- Use information from our prior lesson's material to persist your list to
localStorage
. - Use the provided
style.css
file to add some styling to the page. - Add an image to your page like the example shown above.