Last active
February 28, 2018 13:10
-
-
Save kraizt/c28200dec1cbfeb03c243d700d72bed6 to your computer and use it in GitHub Desktop.
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
// html | |
<html> | |
<head> | |
<title>Hello jQuery my old friend</title> | |
</head> | |
<body> | |
<h1>Hello from darkness</h1> | |
<input id=”message”> | |
</body> | |
// js | |
<script type=”text/javascript”> | |
$(‘#message’).on(‘keyup’, function(){ | |
$message(‘#message’).on(‘keyup’, function(){ | |
var message = $(‘#message’).val(); | |
$(‘h1’).text(message); | |
}) | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment