Forum: Ruby on Rails newbie q: Form element focus

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F5b71b0927bc26d1fa8ab82fff24501e?d=identicon&s=25 Ryan Blanks (stimpy)
on 2005-12-15 00:03
This is probably a dumb question, but is there an easy way to set the
focus of a form to the first visible/editable element?  I've been
googling lots and searching documentation and haven't come up with
anything.  Help would be appreciated.
4bd34a2216dc8bdbf1f017f64e4d59e8?d=identicon&s=25 Kyle Maxwell (Guest)
on 2005-12-15 01:45
(Received via mailing list)
In javascript assuming you have the prototype, etc libraries

$('form_element_id').focus()
This topic is locked and can not be replied to.