I want to make a form where, when the page first loads you can just
being typing away in the first text_field. I thought this was called
focus, so I tried
<%= text_field :group, :name %>
<%= javascript_tag "$(''group_name'').focus()"
%>
but that doesn''t seem to work for me. Is this called something else?
~Jeremy
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---