Seems like a simple question, but I''ve had a heck of a time finding the
answer. The form object I need to access is a radio_button. We''ll say
the id is someId.
I need the equivalent of:
var value = document.getElementById(''someId'').value;
if value == ''T'' then blah blah
I''d go over all the different things I''ve tried and
suggestions I''ve
received (none of which worked), but they''re far too many.
What one would think is the obvious answer does not work:
value = page[''someId''].value
if value == ''T''
blah
end
Any help much appreciated
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---