well, you can use javascript in the body tag to set the cursor on a given field:
OnLoad="document.nameofyourform.nameofyourfield.focus();" and I believe when the form errors out it sets the class of the form tag to "form-error" so try: OnLoad="document.nameofyourform.form-error.focus();" On Jan 9, 3:37 pm, pvilas <[EMAIL PROTECTED]> wrote: > How can I focus the first invalid field in a form? > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
