0

Hi,

I'm having trouble getting access to a Radio button. I found on the internet that I can use:

document.form_name.radio_name[number].checked = true;

So I'm doing that:

document.hitForm.Answer_1[0].checked = true;

But it isn't working. I have included a picture of the Chrome Dom inspector.

Pic

The first circle points to the form the radio button is in.
The second and fourth circle are the same <p> where tho radiobuttons are in with the same name. The third circle is an example of the radio button I need access to and I want to put it checked.

Can anyone help me out on this?

Edited by Kligham: n/a

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Kligham
0

I would just have used the jQuery selector to select the radiobutton with the corresponding name :) but I'm a jQuery freak as well so don't listen to me x)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.