W
wl
Hi,
I have a radiobutton group in HTML in a form:
Sex: <input type="radio" name="Sex" value="male">Male
<input type="radio" name="Sex" value="female">Female
<input type="radio" name="Sex" value="unknown">Unknown<br>
When I call document.forms[0].elements['Sex'].type I don't get "radio" but
"undefined" instead.
For all other kinds ("text", "textarea", ... etc) of input fields the type
is returning a correct
string.
It only seems to happen with Internet Explorer (using version 6).
What am I doing wrong ?
Thanks in advance,
Wim
I have a radiobutton group in HTML in a form:
Sex: <input type="radio" name="Sex" value="male">Male
<input type="radio" name="Sex" value="female">Female
<input type="radio" name="Sex" value="unknown">Unknown<br>
When I call document.forms[0].elements['Sex'].type I don't get "radio" but
"undefined" instead.
For all other kinds ("text", "textarea", ... etc) of input fields the type
is returning a correct
string.
It only seems to happen with Internet Explorer (using version 6).
What am I doing wrong ?
Thanks in advance,
Wim