S
SAN CAZIANO
how can clear an html SELECT and next insert in it all the elements of an array ()
I try this but seems doesn't works.
function ComboAddArrayValueWithLabel(combo,ArrayLabel,ArrayValue)
{
combo.options.length = 0;
for (i=0; i<ArrayLabel.length; i++)
combo.options[combo.options.length] = new Option(ArrayLabel,ArrayValue);
}
I try this but seems doesn't works.
function ComboAddArrayValueWithLabel(combo,ArrayLabel,ArrayValue)
{
combo.options.length = 0;
for (i=0; i<ArrayLabel.length; i++)
combo.options[combo.options.length] = new Option(ArrayLabel,ArrayValue);
}