Colin Law wrote in post #968844: > On 16 December 2010 13:52, Sofie Willander <[email protected]> wrote: >> How do I select a radio button when both id and name are identical?: >> >> <input type="radio" name="BILFPB.bilPremieUppgifterFI.under24" >> tabindex="13" value="J24" checked="checked" id="forare">Ja >> <input type="radio" name="BILFPB.bilPremieUppgifterFI.under24" >> tabindex="14" value="N24" id="forare">Nej > > I believe that is not valid html unless id values are unique.
You are correct. But you could probably still use CSS or XPath selectors to get the item you want. > > Colin Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

