D
dal.luc
Hello,
I've a problem : I want to check which element has been checked in a
list of radiobuttons.
/////////////////////////////////////
function numeroChk(liste)
{
var elem=document.all(liste)
alert(elem.length)
for(i=0;i<elem.length;i++)
{
if (elem.checked)
{
indice = elem.value;
return indice;
}
}
}
This work fine in IE but not in Firefox
The problem is that document.all is not recognized by Firefox, but when
I try document.getElementById(liste), nothing works
liste is a string.
What must I do to translate this function properly ?
Thanks for assistance
Luc
I've a problem : I want to check which element has been checked in a
list of radiobuttons.
/////////////////////////////////////
function numeroChk(liste)
{
var elem=document.all(liste)
alert(elem.length)
for(i=0;i<elem.length;i++)
{
if (elem.checked)
{
indice = elem.value;
return indice;
}
}
}
This work fine in IE but not in Firefox
The problem is that document.all is not recognized by Firefox, but when
I try document.getElementById(liste), nothing works
liste is a string.
What must I do to translate this function properly ?
Thanks for assistance
Luc