# Text\_field help

**URL:** <https://www.ruby-forum.com/t/text-field-help/114458>\
**Category:** Rails\
**Created:** [September 12, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/text-field-help/114458 "2007-09-12T22:20:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [September 12, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/text-field-help/114458/1 "2007-09-12T22:20:39Z")

</div>

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
