Skip to content

Instantly share code, notes, and snippets.

@mattborn
Created April 20, 2010 15:33
Show Gist options
  • Save mattborn/372635 to your computer and use it in GitHub Desktop.
Save mattborn/372635 to your computer and use it in GitHub Desktop.
// Simple Input Focus Clear Value
$(document).ready(function() {
$('input#name').focus(function() {
if ($(this).val() == 'Have an account?') {
$(this).val('').addClass('change-style');
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment