Copy code code as follows:
var obj = document.GetelementByidx ("test");
if (0 <obj.options.Length) {
//Obj.Options.RMove (OBJ.SelectEx); // ie available
obj.options [obj.selectedIndex] = null; // ie ff can be
for (var I = 0; I <obj.options.Length; i ++) {// for only for re -sorting ... can be ignored
obj.options [i] .text = "Sub -term"+i;
obj.options [i] .Value = i;
}
if (0 <obj.options.length) {// The first choice status
obj.options [0] .select = true;
}
}