Created
June 7, 2010 18:36
-
-
Save zackkitzmiller/429000 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
$(document).ready(function(){ | |
var placeholder_text = 'Email Address'; | |
$('#input_field').focus(function(){ | |
if ($(this).val() == placeholder_text) { | |
$(this).val(''); | |
} | |
}).blur(function(){ | |
if ($(this).val() == '') { | |
$(this).val(placeholder_text); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment