Skip to content

Instantly share code, notes, and snippets.

@joliz
Created October 17, 2016 14:38
Show Gist options
  • Save joliz/03d9a05a7b1abc7400064ece5ad26eca to your computer and use it in GitHub Desktop.
Save joliz/03d9a05a7b1abc7400064ece5ad26eca to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=03d9a05a7b1abc7400064ece5ad26eca
<!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>
{"enabledLibraries":["jquery"]}
$("#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