Skip to content

Instantly share code, notes, and snippets.

@alexpelan
Created November 30, 2016 22:37
Show Gist options
  • Select an option

  • Save alexpelan/9021cd947f42412a480d83db487cea98 to your computer and use it in GitHub Desktop.

Select an option

Save alexpelan/9021cd947f42412a480d83db487cea98 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=9021cd947f42412a480d83db487cea98
<!DOCTYPE html>
<html>
<head>
<title>We Do</title>
</head>
<body>
</body>
</html>
{"enabledLibraries":["jquery"]}
// 1. Put an input with an id "name" and button in the html
// 2. Add a <p> tag with the text "Hi" in it
// 3. Add a click handler when the button is clicked
// 4. In the click handler, append whatever is in the input to the paragraph
// 5. Click it multiple times - how could we fix this?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment