Posted on 2004-09-06
i have had a look on google about this but couldn't find anything.
the situation is this... i have a large form with a number of required field validators on it. there's a button at the bottom of form. when it's clicked the form validation fires. i've set up a validation summary to pop up an alert box containing the fields that require information.
however, what would be even better, would be to set the focus to the first field in the list, that requires information. so the process would go:
1. click button.
2. validation summary show a pop up with a list of fields
that require info.
focus to the first field in the pop up.