forked from mmangino/jQuery-AutoFill
-
Notifications
You must be signed in to change notification settings - Fork 0
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
mathewmarsh/jQuery-AutoFill
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published