Created
November 29, 2016 15:59
-
-
Save anonymous/8549724468c89747b455b4f7312092fd to your computer and use it in GitHub Desktop.
Exported from Popcode.
This file contains 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> Say hello!</title> | |
</head> | |
<body> | |
<h1> What is your name? </h1> | |
<input id="name"> | |
<button class="SayHello"> Say Hello </button> | |
<p> Hello </p> | |
</body> | |
</html> |
This file contains 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 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
$("button").click(function() { | |
$("p").append($("#name").val() ); | |
$("p").show(); | |
}); | |
This file contains 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
p { display:none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment