did you try?

jQuery(document).ready(function(){ jQuery
("input:text:first:visble").focus(); });

On Jun 26, 1:33 pm, Hans Donner <hans.don...@pobox.com> wrote:
> annet, perhpas you can first retrieve the current onfocus value and
> pass that back on your onfocus. This could be done for all forms.
>
> On Fri, Jun 26, 2009 at 7:55 PM, annet<annet.verm...@gmail.com> wrote:
>
> > I liked the $("input:text:first:visble").focus(); solution because one
> > line of code sets the focus on the first input field in all my forms,
> > in my cms application alone I have 32 forms. Only two of them have a
> > field of type date as the first field visible. In case of Denes's code
> > I would have to set the focus on each first field in every form
> > separately. I thought input:text meant input fields of type text only,
> > and that it would exclude input fields of type date.
>
> > I had hoped there would be a way to use Denes' code to take care of
> > these two exceptions.
>
> > Kind regards,
>
> > Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to