notice how the placeholder works on the Stackoverflow ask a question title and on Twitter’s Sign Up form: https://twitter.com/signup
The placeholder has two states:
- No selected (placeholder shown)
- Selected, but 0 input (placeholder shown, lighter color)
Does anyone know of a jQuery plugin that supports this? I’ve seen jQuery placeholder plugins that support #1, but not #2.
Thanks
Here is a quick and easy example to get you started.
HTML
JavaScript
Good luck
EDIT: I increased the functionality and packaged it as a plugin, you can get it at Github, the jQuery Plugin Site or from the Project Home (Demo & Documentation Available)