- Users type in the input field and press enter
- When they press enter, use the input value and add it as a list item to the unordered list under the input field.
- When a user clicks on a list item, the checkbox should fill. And text should turn grey to indicate that it has been "done."
- Start with a "document ready"
- Research "event binding" in jQuery
- You will have to "prevent default" behaviour
- Use concatenation to add HTML elements. KW: found the createTextNode/appendChild methods and used those
These are only suggestions and things you can add to improve your application or make it more complex.
- Allow the removal of items completely from the list
- Automatically move completed items to the bottom
- Error if input is empty
- Drag/drop sort items (have a look at jQuery UI)
- When the page loads focus on the input field (i.e. cursor should load inside input, ready to type)