Skip to content

Instantly share code, notes, and snippets.

@courtney-scripted
Created November 3, 2016 21:13
Show Gist options
  • Save courtney-scripted/5c32933d9c84ef30179445cd47db1d8d to your computer and use it in GitHub Desktop.
Save courtney-scripted/5c32933d9c84ef30179445cd47db1d8d to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=5c32933d9c84ef30179445cd47db1d8d
<!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