Hi there
I'm having problem adding options in a select box in IE6.
Tried many examples but can only make it work in Firefox.
The event to trigger the adding of new items, is comming from another dropdownlist.
Have anyone found a solution to add options in IE6?
****
Tried:
var option = document.createElement("OPTION");
list.options.add(option);
option.innerText = "Two";
option.value = "2";
and:
option = document.createElement("option");
select.add(option, 0);
option.value = i;
option.appendChild(document.createTextNode (i));
and:
list.options[list.options.length] = new Option(index + ' year',index);
I'm having problem adding options in a select box in IE6.
Tried many examples but can only make it work in Firefox.
The event to trigger the adding of new items, is comming from another dropdownlist.
Have anyone found a solution to add options in IE6?
****
Tried:
var option = document.createElement("OPTION");
list.options.add(option);
option.innerText = "Two";
option.value = "2";
and:
option = document.createElement("option");
select.add(option, 0);
option.value = i;
option.appendChild(document.createTextNode (i));
and:
list.options[list.options.length] = new Option(index + ' year',index);