Hi folks,

I found the answer:

scroll(0,0);

In my code, I put this line right after the code to generate the error
message at the top of the page telling how many total errors there
are.

Hope this is helpful to someone.

Kathryn


On Mar 31, 6:05 pm, Kathryn <kathry...@gmail.com> wrote:
> I'm using the validation plugin athttp://bassistance.de. When form
> validation fails, focus goes to the first invalid element. But I have
> a summary error message at the top of the page which I want the user
> to see. If the first invalid field is too far down, they don't see the
> message. How can I go to the top of the page after validation fails?
> (Seems like this should be easy, but googling didn't reveal an
> answer.)
>
> Thanks in advance--
>
> Kathryn

Reply via email to