We've all seen this before, but it never ceases to amaze me.
Go to: http://www.internetretailer.com/renewal/
Take a look at the questions with the checkboxes. You can only select on at a time.
To accomplish this there is : onClick="radio(this); on each checkbox. That function is:
function radio(c)
{
var cg=document.freesubscription.elements[c.name];
if (c.checked)
{
for (idx=0;idx<cg.length;idx++)
{
if (cg[idx].value != c.value)
{
cg[idx].checked=0;
}
}
}
}
It's all functional, but have they never heard of type=radio? You would think that InternetRetailer would at least have a clue.