Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html>
<head>
<title>by jQuery</title>
<script type="text/javascript" src="sources/jquery.min.js"></script>
</head>
<body>
<h1>This is by jQuery</h1>
<input id="inputTag" type="text">
<p>Hello, <span id="textContainer"></span></p>
<script type="text/javascript">
$(document).ready(function(){
$('#inputTag').keyup(function(){
var txt = $(this).val();
$('#textContainer').text(txt);
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment