Hi everyone
I just started to learn Javascript and i am running into a problem i just cant figure out how to fix. Just to set up the situation i have a combo box with different options in it and i created a button to remove an option if i desire. When the button is pressed 2 options are removed and it is never the selected option…. if any of you pros can spare a min to look at this i would greatly appreciate it. Thanks in advance Chris Osburn
[CODE]
function RemoveListItem(RemoveItemName){
var oListOutPut = document.getElementById(‘ListOutPut’);
var intListLength = oListOutPut.options.length;
for (var i=0; i <= intListLength; i++){
if (oListOutPut.options[i].value = RemoveItemName){
oListOutPut.options[i] = null;
}
}
}