Skip to content

Instantly share code, notes, and snippets.

@40thieves
Last active December 16, 2018 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save 40thieves/c622e087ce8b88aa3bc413f5d2ca0ec9 to your computer and use it in GitHub Desktop.
Save 40thieves/c622e087ce8b88aa3bc413f5d2ca0ec9 to your computer and use it in GitHub Desktop.

Create a form that:

  1. Has a dropdown to select an option from a list
  2. An input to type out a short sentence
  3. A longer textbox to write out a paragraph of text
  4. A submit button
  5. Has useful labels for each field
  6. Code that runs when the submit button is clicked
  7. Code to make a POST request containing the form data
  8. Code to check form validation
  9. Code to show validation errors if not valid
  10. Code to fetch the list of the options in the dropdown, which runs when the page loads

Any (web) technology can be used. Styling is less important than implementing the requirements.

Consider readability, accessibilty, performance (and be prepared to explain where you made decisions about these points).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment