Hi there, a whole lot of code (for once i made an example out of it). You'll see it does work!
function go() {
var optionCounter;
var smalllist = document.getElementById('smalllist');
var biglist = document.getElementById('biglist');
var selectedValue = smalllist.options\[smalllist.selectedIndex\].value;
for(optionCounter = 0; optionCounter < biglist.length; optionCounter++) {
if(biglist.options\[optionCounter\].value == selectedValue){
alert(biglist.options\[optionCounter\].text + " will be removed");
biglist.options\[optionCounter\] = null;
}
}
}
one
two
tree
four
five
six
seven
eight
nine
ten
one
two
tree
four
five
six
seven
eight
nine
ten