mngmd
09-24-2005, 11:54 PM
This should be easy, but I'm a complete newbie.
I've figured out combo boxes, but I want to use radio buttons to allow for selections. I'm using only javascript...
IN the body, I have:
<FORM NAME="test" ONSUBMIT="return setfilen(this)">
<P><INPUT TYPE="RADIO" NAME="cal" VALUE="Nov" CHECKED />November 6 thru December 3<br></P>
<P><INPUT TYPE="RADIO" NAME="cal" VALUE="Nov_" />December 4 thru December 31</P>
In the script itself, I have
function setfilen (form) {
alert (form.cal.value)}
Works fine when there's only one radio button, but as soon as I add a second, I get "Undefined". (This is primitive, I know). What am I doing wrong?
I've figured out combo boxes, but I want to use radio buttons to allow for selections. I'm using only javascript...
IN the body, I have:
<FORM NAME="test" ONSUBMIT="return setfilen(this)">
<P><INPUT TYPE="RADIO" NAME="cal" VALUE="Nov" CHECKED />November 6 thru December 3<br></P>
<P><INPUT TYPE="RADIO" NAME="cal" VALUE="Nov_" />December 4 thru December 31</P>
In the script itself, I have
function setfilen (form) {
alert (form.cal.value)}
Works fine when there's only one radio button, but as soon as I add a second, I get "Undefined". (This is primitive, I know). What am I doing wrong?