I have this short routing checking the selected radio button with values 1,2 and 3
if (x.packageoption.value=="asp"
for (i=0;i<document.order.payfreq.length;i++) {
if (document.order.payfreq.checked) {
freq= document.order.payfreq.value
price=asp[dd]
break; }}
But I can't get it to work, if I write out to the screen the value of the selected radio button this changes, say i click radio 1 the displayed value is 1, i click radio 2 the value is 0, i click radio 1 again the value is 2.
Can someone help please
if (x.packageoption.value=="asp"
for (i=0;i<document.order.payfreq.length;i++) {
if (document.order.payfreq.checked) {
freq= document.order.payfreq.value
price=asp[dd]
break; }}
But I can't get it to work, if I write out to the screen the value of the selected radio button this changes, say i click radio 1 the displayed value is 1, i click radio 2 the value is 0, i click radio 1 again the value is 2.
Can someone help please