Works for me. Are you sure you have unique IDs for each radio button
element?
On May 7, 1:08 pm, "Joe Harman"
<cjhar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hey ya''ll... Love learning Prototype so far... ran into a small
> problem today, from my google search it doesn''t seem like there is
an
> easy way to do this... i hope i have assumed wrong!
>
> I need to change the focus of a radio button... I currently use this
> code to call focus to the first form element... i tried to reuse it to
> do radio buttons with no success
>
> ------------------------------------------------------------------------
> function setfocus(a_field_id) {
> $(a_field_id).focus()
>
> }
>
> window.onload=function() {
> setfocus(''email'')}
>
> ------------------------------------------------------------------------
>
> any help would be appreciated
> Joe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---