HTML 5 has added a feature Web designers have been creating via JavaScript tricks for years. The placeholder attribute.
This attribute shows a form field's label inside the field instead of outside it.
When the user starts typing, this label disappears letting only the user's text show inside the input area.
Apparently not even an official standard yet and developers have found problems with the this attribute.
The Label Better jQuery plugin alters this behavior by animating the placeholder text at the top of the form field, instead of deleting it.
This way users filling in a form can go back to any previous field and edit their content, knowing what they edit, since in previous cases the placeholder was completely removed from the form.
Requirements:
- JavaScript enabled on client side
- jQuery
Comments not found