Beautiful Forms with JavaScript
A while back, I posted a blog called "The JavaScript Switcharoo" that
presented a technique for eliminating labels from form inputs. It was
pointed out in the comments that this technique not only threw errors in
Internet Explorer (not good), but would also cause usability issues for
screen readers and other text-only browsers (also not good). I've since
rewritten the script to cooperate in the ever-troublesome IE family of
browsers, as well as using accessible XHTML markup.
View the Demo | Download
the Source Code
What are we going for, here?
The desired outcome of this script is to 1) create a standard
comment form, 2) dynamically display form field
descriptions inside each form field using the information stored
in corresponding label elements, then write functions to 3) hide
the description when the user...
read more
- «
-
- 1
-
- »