Typo:
It will fail silently if the first errored input element on the form
is not a
input control (a textarea for example).
Might be possible to expand the rule to include other input element
types...
On Aug 24, 10:14 pm, RichardAtHome <[EMAIL PROTECTED]> wrote:
> A quick bit of jQuery:
>
> $("#content form:first div.error:first input:first").focus();
>
> Will focus the first errored input field on the first form in the
> #content div.
>
> It will fail silently if the first input element on the forum is not a
> input control (a textarea for example).
>
> [EMAIL PROTECTED] wrote:
> > hello guys
>
> > in my cakephp project i uses the cake validation witch uses server
> > side validation , i need it to focus on the error field after
> > detecting it so how can i do something like this ?? since the focus
> > can be done with a client side validation , so im wondiring if there
> > is any way in cake to do that in the same validation process .
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---