A simple jQuery plugin for showing a text field’s label inside the textbox itself. The hint disappears when it is given focus, and appears again if the inputted text is empty. Typically used for search and login forms.
This plugin works in all modern browsers, and it even works with password field hints.
Related Submissions:
- In-Field Labels: A Better Way The effect is achieved by overlaying the label element over the input, password, or textarea and making it semi-transparent when the field has focus. Once...
- jQuery: Show Plain Text in a Password Field How to have a password form field which shows “Password” and when the user clicks into it it then becomes a regular password field with...
- Label Element Secret Powers In web forms, label element plays an important role. It describes the corresponding form field, whether it’s a text field, radio button, checkbox or a...
- Password Validation Plugin This plugin extends the jQuery validation plugin, providing two components: * A function that rates passwords for factors like mixed upper/lower case, mix of characters...
- Styling Your Search Form with CSS Today I would like to cover how to style your search field using background images in CSS. Previously I was using a different technique to...