[jQuery] validate plugin : scroll to firt error
Hi all,
Just wonder if someone here already tried to make validate smoothly
scroll to the first error of a form when validating because
when the form is longer than the viewport height, you can't see the
labels.error so the user wonder if the submit button is working or
not.
I see it's possible to bind the "invalid-form.validate" event and find
the first "label.error" element of the form but I wonder what to use
in order
to make the viewport scroll smoothly to the matched element ? Is there
a plugin for that ?
--
Fabien Meghazi
Website: http://www.amigrave.com
Email: agr@amigrave.com
IM: amigrave@gmail.com