When a user enters text in the input fields, update the corresponding chat bubble.
- Add a click handler for the left chat button (
id="buttonLeft") - When the button is clicked, save the value of the left input field to a variable (
id="inputLeft") - Update the chat bubble text to display the saved value (
id="chatLeft")
- Add a click handler for the right chat button (
id="buttonRight") - When the button is clicked, save the value of the right input field to a variable (
id="inputRight") - Update the chat bubble text to display the saved value (
id="chatRight")
- After updating the chat bubbles, clear the text in the input field. Update both click handlers!