Forum: Ruby on Rails focus on text_field

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
13c60e2a5806406b537daa542d3495da?d=identicon&s=25 huang zhimin (Guest)
on 2007-07-20 09:30
(Received via mailing list)
I use ajax to dynamically display a form under a div, so i can't put a
javascript function to body's onload.
Is there any other method to focus a text_field?

This topic is locked and can not be replied to.