Andy Matthews wrote:
Is there a plugin for this by chance? I know it's pretty quick to write,
but wanted to find out if someone's already done it better than I could.
Also, would toggle() work for this sort of thing? Is there a focus/blur
toggle in the jQuery core?
Something similar I did some time ago:
http://scott.sauyet.com/thoughts/archives/2007/03/31/overlabel-with-jquery/
(scroll to the bottom for the final version.) This places the label for
a text field on top of that box but hides it on focus or when there is
actual content in the field. It's mainly a real-estate saving feature.
-- Scott