From 6ba160e62d62926ac98384b809a6ad711c44cfd5 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Wed, 16 May 2018 00:54:11 -0400 Subject: [PATCH] events input --- events/input.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/events/input.md b/events/input.md index b929c50..c2bb627 100644 --- a/events/input.md +++ b/events/input.md @@ -41,16 +41,6 @@ $('#input-box').val() }); ``` -### You Do - -* Make an input box and a button. The input should ask for the user's favorite TV show -* When you click the button, make it so that a message appears on the page: "Hi! Your favorite show is: _show name from input_" - -**Extra** - -* Instead of a TV show name, ask the user to input the url for an image that they like -* When the user clicks the submit button, add an `img` to the page and set the `src` attribute to the input value. Get the image to show on the page. - ## Use a form's submit event With a **form** tag you can hit the enter key to submit the form data. @@ -62,8 +52,6 @@ With a **form** tag you can hit the enter key to submit the form data. ``` -app.js - Set the handler on the form element instead of the submit. ```javascript