Created
October 17, 2016 14:38
-
-
Save joliz/03d9a05a7b1abc7400064ece5ad26eca to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=03d9a05a7b1abc7400064ece5ad26eca
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>Why you mad?</title> | |
</head> | |
<body> | |
<div class="section"> | |
<h1>What is your name?</h1> | |
<input id="name"> | |
<button id="submit-name">Say Hello</button> | |
<p id="greeting">Hi </p> | |
</div> | |
</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
$("#submit-name").click(function() { | |
$("#greeting").append($("#name").val()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment