Forum: Ruby on Rails set cursor in text_field_tag?

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.
60a3df689ea2a20d11d3986e02f9b7d1?d=identicon&s=25 Javier_CH (Guest)
on 2007-05-07 14: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.