K
Konrad Mathieu
Dynamically changing an HTML-menu:
function changeSelectMenu(v){
for(i=0;i<v;i++){
NewEntry = new Option(i+1,i,false,false);
document.Testform.Testmenu.options = NewEntry;
}
}
....works fine but:
When "v" is changed to a lower value, the old higher entries are still
visible.
How can one clear the options object before rewriting it?
Thanx and cheers,
Konrad
function changeSelectMenu(v){
for(i=0;i<v;i++){
NewEntry = new Option(i+1,i,false,false);
document.Testform.Testmenu.options = NewEntry;
}
}
....works fine but:
When "v" is changed to a lower value, the old higher entries are still
visible.
How can one clear the options object before rewriting it?
Thanx and cheers,
Konrad