Created
November 28, 2016 22:09
-
-
Save anaguzmn/f3056fb75738e7e89d5efc844ba9b0c4 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=f3056fb75738e7e89d5efc844ba9b0c4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<h1> What is your name? </h1> | |
<button id = "magic">Say Hello</button> | |
<input type="text" name="textie"> | |
<input type="text" name="textie"> | |
<button id = "appear">Favorite food</button> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"enabledLibraries":["jquery"]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#magic").click(function(){ | |
$("body").append("<p> Hi "+ $("input").val()+" </p>"); | |
}); | |
$("#appear").click(function(){ | |
$("body").append("<p> My favorite food is "+ $("input").val()+" </p>"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment