bcamp1973 a écrit :
> can someone quickly demonstrate the use of focusFirstElement() for me?
> I know the answer to this is going to be a simple one, but i'm getting
> no results and feeling a bit stupid about it :P  Thanks!

Er...  In HTML:

<form id="frmMain"...>
  ...
</form>

In script:

$('frmMain').focusFirstElement();

Or does your question extend further?

  http://prototypejs.org/api/form/focusFirstElement

Note that Prototype trunk incorporated my patch about this, which favors
tabindex order if present.

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to