Dynamically changing an HTML-menu:
function changeSelectMen u(v){
for(i=0;i<v;i++ ){
NewEntry = new Option(i+1,i,fa lse,false);
document.Testfo rm.Testmenu.opt ions[i] = 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 changeSelectMen u(v){
for(i=0;i<v;i++ ){
NewEntry = new Option(i+1,i,fa lse,false);
document.Testfo rm.Testmenu.opt ions[i] = 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
Comment