|
Project Information
Featured
Downloads
|
This plugin allows you to have form fields that are emptied when they get focus. If you don't enter anything, the default value is restored when the focus is lost. You can customize which input fields are affected by the plugin and which aren't. //This will affect all input fields
$("body").clearFields();
Finally, you can easily select which types of input fields you using the parameters "textFields", "textAreas" and "passwordFields". By default these are set to true. //This will only affect text fields and text areas in the div#main.
$("div#main").clearFields({passwordFields: false});
Released under the GPLv3 license |