I have this textfield that appears as a drop down section whithin a form
when a link is clicked - so it is it''s own partial. The idea is that a
value can be entered within that field and then added to a list, but I
need the cursor to re-focus on that text field so lots and lots of
values can be inputed without having to reclick on that field everytime.
When the form is submitted I clear the textfield by saying:
:complete => ''document.getElementById("value").value =
"";
in my form_remote_tag, but adding this:
document.getElementById("value").focus();
doesn''t do what I would like it to do. Anyone have an suggestiosn on
how
to do this> Thanks,
-S
--
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
-~----------~----~----~----~------~----~------~--~---