The focus on first element is no longer is web2py_ajax. This is because if the form is at the bottom of the page, it scrolls the page. Often this is not what you want. Anyway, even if this does not go in web2py_ajax, your suggestion is very useful.
Massimo On Dec 16, 7:21 am, vihang <[email protected]> wrote: > Hi, > there are instances when the first element of the form is not an input > box, but say, as in my case, select box. I would still want the focus > on the first element. If there are more who agree, then alternatives > are > > (simple) - changing $("input:visible:enabled:first").focus(); to $ > (":text:visible:enabled:first").focus(); > That fixes the issue for many cases. > > Alternatives > arehttp://www.gerd-riesselmann.net/development/focus-first-form-field-wi... > orhttp://github.com/dcadenas/auto_focusable_forms/tree/master > > but that means more code in the nice and simple web2py_ajax > > comments? > > Cheers > Vihang --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

