<script type="text/javascript">
/*<CDATA[[*/
function g1(){
for (i = 0; i < document.forms[0].g2.length; ++i){
if(document.forms[0].g2[i].ckecked == true){
document.forms[0].g2[i].checked = false;
}
}
}
function g2(){
for (i = 0; i < document.forms[0].g1.length; ++i){
if(document.forms[0].g1[i].checked == true){
document.forms[0].g1[i].checked = false;
}
}
I'm not sure I understand the purpose of the two functions resetting the other group.
This could be handled easier by making the radio buttons as a single name
Here is your code and my code side-by-side.
if u click, for instance, either of the monthly(8.95) or yearly(19.95) radio buttons, all the other radio buttons in this script should be deselected(un-checked).. Likewise, if u click one of the "issues" radio button, the reset (including the monthly, and yearly) of the radio button should be un checked.
I still do not see what benefit you get from two different groups of radio buttons.
Since all the values are different, you would be able to tell the subscription rates just by that information only
and still need only one radio button group to achieve the functions you describe.
Bookmarks