Copier le code du code comme suit:
var obj = document.getElementByIdx ("test");
if (0 <obj.options.length) {
//Obj.options.rmove (obj.selectEx);
obj.options [obj.selectedIndex] = null;
pour (var i = 0; i <obj.options.length; i ++) {// pour uniquement pour re -sorting ... peut être ignoré
obj.options [i] .text = "sub -term" + i;
obj.options [i] .value = i;
}
if (0 <obj.options.length) {// L'état du premier choix
obj.options [0] .Select = true;
}
}