Forum: Ruby on Rails set cursor in text_field_tag?

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.
Javier_CH (Guest)
on 2007-05-07 16:42
(Received via mailing list)
Let's say I've text_field_tag A and B.

I type something in A and hit the tabulator-key. An observe_field-
helper-method gets triggered, some fancy Ajax-JS-stuff happens, the
formerly disabled field B gets enabled and now I'm able to type into
textfield B.

No, how can I say with JS/Prototype/Railshelpers that I'd like the
cursor to jump right in textfield B after the Ajax-JS-stuff happend?
So the user can just write along after hitting the tab-key and
changing from A to B?
This topic is locked and can not be replied to.