Hint provides a simple API for adding JavaScript "hint" text to text and password fields. The "hint" is shown inside of the text field until the user clicks or gives focus to the text field, then the hint text is cleared, allowing the user to enter their own content.

  • Works with both textfields and password inputs.
  • Uses the "title" attribute for the hint text content.
  • Easily add a hint to any text field by using the #hint Form API property.
  • Includes sample implementations for the search and user login forms.

This module built by robots: http://www.lullabot.com
Written by Nathan Haug (quicksketch)

Project Information