How do I set focus on a specific form field when I render a partial from
the controller?
I can do it with page[‘name’].focus from an RJS view, but I can’t figure
out how to do it when rendering this rhtml partial from the controller.
I’m rendering a partial with two fields and neither one has focus until
I hit the tab key or put the cursor in a field with the mouse. Sure
would appreciate a pointer !
How do I set focus on a specific form field when I render a partial from
the
controller?
I can do it with page[‘name’].focus from an RJS view, but I can’t figure
out
how to do it when rendering this rhtml partial from the controller.
I’m rendering a partial with two fields and neither one has focus until
I
hit the tab key or put the cursor in a field with the mouse. Sure would
appreciate a pointer !
How do I set focus on a specific form field when I render a partial from
the controller?
I can do it with page[‘name’].focus from an RJS view, but I can’t figure
out how to do it when rendering this rhtml partial from the controller.
I’m rendering a partial with two fields and neither one has focus until
I hit the tab key or put the cursor in a field with the mouse. Sure
would appreciate a pointer !