Created
November 3, 2016 21:13
-
-
Save courtney-scripted/5c32933d9c84ef30179445cd47db1d8d to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=5c32933d9c84ef30179445cd47db1d8d
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>Hello</title> | |
</head> | |
<body> | |
<h1>What is your name?</h1> | |
<input id="name"> | |
<button id="say-hello">Say hello</button> | |
<h2 id="result">Hello!</h2> | |
</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
$("#say-hello").click(function() { | |
$('#result').text("Hello, " + | |
$("#name").val()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment