Fork me on GitHub

Download this project in
either zip or tar format.

You can also clone this project from
git://github.com/sbfaulkner/jquery.hint

jquery.hint

a hinted input plugin for jquery

The hint plugin for jquery provides a convenient (and stylish!) way to provide sample or hint text in input fields on your forms.

Dependencies

Install

  1. Copy javascript to your project.
  2. Include javascript in your html.
  3. Add input[type=text] to your html with corresponding label containing sample/hint text.
  4. Invoke the plugin in your document ready handler.

Example

<html>
  <head>
    <title>jquery.token example</title>
    <script src="/javascripts/jquery.js" type="text/javascript"></script>
    <script src="/javascripts/jquery.hint.js" type="text/javascript"></script>
    <script type="text/javascript">
      $(document).ready(function() {
        $('input.email').hint();
      });
    </script>
  </head>
  <body>
    <label for='email'>Email address</label>
    <input type='text' class='email' id='email'/>
  </body>
</html>

License

Author

S. Brent Faulkner (brentf@unwwwired.net)