Skip to content

Instantly share code, notes, and snippets.

@courtney-scripted
Created November 22, 2016 20:22
Show Gist options
  • Save courtney-scripted/d5341355f19a99bbbb9439a9c7b843b5 to your computer and use it in GitHub Desktop.
Save courtney-scripted/d5341355f19a99bbbb9439a9c7b843b5 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=d5341355f19a99bbbb9439a9c7b843b5
<!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>
{"enabledLibraries":["jquery"]}
$("#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