Created
May 10, 2013 07:19
-
-
Save nit3ch/5552908 to your computer and use it in GitHub Desktop.
A CodePen by Nitesh Kumar. Real time greeting. - Hello world app for jquery.
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
Enter your name : | |
<input id="name" type="text"> | |
<h2 id='greeting'></h2> |
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
$(function() { | |
$('#name').keyup(function() { | |
$('#greeting').text('hello ' + $('#name').val() + ' !'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment