Skip to content

Instantly share code, notes, and snippets.

@sgnl
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sgnl/e5c882318ce6627805de to your computer and use it in GitHub Desktop.
Save sgnl/e5c882318ce6627805de to your computer and use it in GitHub Desktop.
txtrc - A Basic Chat Room

Chat Room

Build a basic chat room. The purpose of this exercise is to practice getting user input and manipulating the DOM through javascript with jQuery.

Requirements:

  • Must have a form
    • this form must have at least 2 fields
      • an input field for username
      • a textarea field for the message to send to the chat room
    • this form must have a submit button
      • when the user clicks on this button it must send the text along with the username to the chatroom's log
      • after the click, the textarea is cleared but the fields with the username must remain unchanged.

-A window for all messages to appear. (hint: an Unordered List, with list elements (messages), inside of a div)

Bonus:

  • Add a timestamp
  • Add fancy styles!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment