A simple plugin to add to your site that lets you specify a default value to be cleared on click, and to reappear when the input is left empty
Ruby JavaScript
Latest commit d47a56e May 23, 2013 @mmangino Add demo of textarea
Failed to load latest commit information.
lib Added toValue option feature, included jsmin ruby minifier, updated d… Mar 4, 2010
jquery.autofill.js don't change text if it is already focused May 17, 2010


Call the plugin like so:

			value: 'Search for Keyword(s)',
			defaultTextColor: '#666',
			activeTextColor: '#333'
/*------- New Option (Mar 4 2010)------*/
Now you can add your custom "prePopulate" to your inputs. For example, if you have a website field, you may want it to start with 'http://'

  value: 'Website',
  prePopulate: 'http://'