The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Input Placeholder 0.9.0
Example calls:
-
$(":text").placehold()treats avalueattribute of each text input individually as its placeholder value -
$(":text").placehold({blurClass: "placehold"})- the same as above, but add a "placehold" toclassof each element, when it is not in focus -
$(":text").placehold({focusClass: "focus"})- same as first, but adds a "focus" to active input class -
$("input[name=email]").placehold({placeholdValue: "Your email here"})- uses the value as a common placeholder string (a value from markup will be omitted)
You can use any combination of blurClass, focusClass and placeholdValue fields of options hash.
Please, remember to validate the form on submit, additionally checking fields for containing a placeholder, because placeholder strings are obviously treated as normal input values by UAs. If a user submits such form, it might even appear valid on the server side, filling your DB with bogus data.
