Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 450 Bytes
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://'
});