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 -~----------~----~----~----~------~----~------~--~---