Hi there,
I have a small problem which has been somewhat of a nuisance for me the past hour or so. I have a form up at http://patrickdevivo.com/ which is kind of low down on the page. When a user submits it with no errors, everything works fine (try it out, I don't mind). However, if a user makes a mistake, then the form fields are highlighted with errors, but the user is stuck up at the top of the page and probably won't immediately think to scroll down to the form. Do you see what I'm saying?
I'm wondering if there is some way to recognize either when a submission has errors, or just when a submission has been made in general, and from that execute a little php which executes a little jquery to scroll down to the form. Do you see?
I'm by no means a PHP expert, but any advice would be very helpful.
Thanks,
Patrick