Skip to content

Instantly share code, notes, and snippets.

Created November 29, 2016 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8549724468c89747b455b4f7312092fd to your computer and use it in GitHub Desktop.
Save anonymous/8549724468c89747b455b4f7312092fd to your computer and use it in GitHub Desktop.
Exported from Popcode.
<!DOCTYPE html>
<html>
<head>
<title> Say hello!</title>
</head>
<body>
<h1> What is your name? </h1>
<input id="name">
<button class="SayHello"> Say Hello </button>
<p> Hello </p>
</body>
</html>
{"enabledLibraries":["jquery"]}
$("button").click(function() {
$("p").append($("#name").val() );
$("p").show();
});
p { display:none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment