Displaying 2 results from an estimated 2 matches for "autofocus".
Did you mean:
autofocused
2010 Aug 09
0
Devise :current_password validations and checking (how???)
...%section#content.w.r
= form_for(@user, :as => :user, :url => change_password_path(:user))
do |f|
%h1 Change your password
%fieldset
%div
= f.hidden_field :reset_password_token
%div
= f.label :current_password
= f.password_field :current_password, :autofocus => true
%div
= f.label :password
= f.password_field :password
%div
= f.label :password_confirmation
= f.password_field :password_confirmation
.action
= f.submit "Change password"
or
= link_to "Cancel",...
2006 Jul 23
6
how do you give focus to a form field?
When you put up a page with a form on it and the top item is a text
field it would be nice to have that field already focused instead of
forcing the user to click in it before they start typing. Is there a
rails (i.e. probably Prototype) way of giving focus to a field? I did
some searching and found nothing.
thanks,
jp
P.S. I''m on a Mac. Perhaps a winoze and/or unix automatically