E
ed a
Hello,
I am a complete JS newbie. I am trying to make one radio button assume
a certain value when another one in a different group is clicked. This
is a conference registration form for which most applicants will pay,
but some do not. It is passing form data to a ColdFusion backend, and
I simply wish to have
the non-paying applicants have the no-pay "payment type" automatically
selected
when they select the no-pay registration type. I have tried the
following with no success (in IE 6.0; I want to test it here first)
<script language="JavaScript" TYPE="text/javascript">
function forceCompPay() {
if (document.forms[1].groupType == "speaker") {
document.forms[1].groupPayment[comp].checked = true
}
}
</script>
</head>
the "master" button is:
<cfinput type="radio" name="type" value="speaker"
onClick="forceCompPay()">Speaker
the "slave" button is :
<cfinput type="radio" name="payment" value="comp"> Comp
everyone else would need to manually select the other payment types.
Any input would be vastly appreciated.
Ed
I am a complete JS newbie. I am trying to make one radio button assume
a certain value when another one in a different group is clicked. This
is a conference registration form for which most applicants will pay,
but some do not. It is passing form data to a ColdFusion backend, and
I simply wish to have
the non-paying applicants have the no-pay "payment type" automatically
selected
when they select the no-pay registration type. I have tried the
following with no success (in IE 6.0; I want to test it here first)
<script language="JavaScript" TYPE="text/javascript">
function forceCompPay() {
if (document.forms[1].groupType == "speaker") {
document.forms[1].groupPayment[comp].checked = true
}
}
</script>
</head>
the "master" button is:
<cfinput type="radio" name="type" value="speaker"
onClick="forceCompPay()">Speaker
the "slave" button is :
<cfinput type="radio" name="payment" value="comp"> Comp
everyone else would need to manually select the other payment types.
Any input would be vastly appreciated.
Ed