Skip to content

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

Notifications You must be signed in to change notification settings

mmangino/jQuery-AutoFill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Call the plugin like so:

	$(document).ready(function(){
		$('#txtSearch').autofill({
			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://'

$('#txtWebsite').autofill({
  value: 'Website',
  prePopulate: 'http://'
});

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published