Skip to content

Instantly share code, notes, and snippets.

@whatnickcodes
Created December 18, 2012 18:24
Show Gist options
  • Save whatnickcodes/4330571 to your computer and use it in GitHub Desktop.
Save whatnickcodes/4330571 to your computer and use it in GitHub Desktop.
on focus blur show value
<input type="text" class="text" id="search-input" value="search..."
onfocus="if(this.value=='search...')this.value='';" onblur="if(this.value=='')this.value='search...';" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment