jQuery Tooltips Made Easy
Published: 02 Dec 2010
Inspired by a recent post on forrst.com (don't ask, I haven't got spare invites) I decided to write an easy to implement jQuery tooltip class for use with forms. A few points were raised in the comments of the original post, many of which I consider to be very relevant and have been taken into account when writing this code:
- Code to be as simple and minimal as possible.
- Tooltips to be semantically correct - this means they are NOT wrapped in label tags, but rather in spans
- Non javascript fallback to be in place (does anyone browse without it anymore?)
- Reliant on CSS for the basic styling (a personal favourite)