WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Setting focus in a php form

for

From: ben morrison
Date: Sep 14, 2006 3:00AM


On 9/13/06, Erika Noll Webb < <EMAIL REMOVED> > wrote:
> We're working on a project where we have a php form that displays new fields
> after it makes a call to the database to determine what options will be
> available based on user decisions previously in the form. I'm trying to
> figure out a good way to reset the focus to the next section of the form
> after each action. Does anybody know a good way to do this? Right now, the
> page scrolls, but it's not really resetting the focus (although visually it
> might seem like it does). It's a hack, and I'd like a cleaner and more
> accessible solution.

How does this work currently, does the page refresh or are you using
javascript to achieve this?

An example page would be helpful

ben