- Use the code from the demo today to build the following:
- Create a local comment widget with the following two fields:
- Author (input text field)
- Message (textarea field)
- Submit button (input submit field)
- Create an empty unordered list
- When someone fills out the field and presses submit, the empty unordered list should have an additional <li> with the data: “[author]: [message]. It should append at the beginning.
- For example, if the word “Kay” was submitted as author and “This is cool” was submitted as message, the unordered list should have at the top, inside the <ul>:
- <li>Kay: This is cool</li>
- When you can enter those text fields and see that it populates your <li> you are done.
- Create a local comment widget with the following two fields: