Forum Moderators: open
function fillinprod(prev_value) {
for (i=0; i<document.form1.product.length; i++)
{
if (document.form1.product[i].value == prev_value )
{
document.form1.product[i].defaultChecked = true;
break;
}
else
{
document.form1.product[0].defaultChecked = true;
}
}
} What it does is that if a previous product is selected (taken from a PHP script), it'll fill in that, else it'll default to the first product in the list. It works in Moz, but not in IE.
Anyone know how to do it?