Hi,
This seems really stupid i cant get my head around this.
I have a listbox that has items added to it from selections from another one. I have also added code that an item can be double clicked to remove it, which works, until the page is refreshed and the items all com back.
my code is
function DeleteItem()
{
var list = document.getElementById("lstSelected");
var len = list.options.length;
var i = 0;
alert(len);
for (i = 0; i < len; i++)
{
if(list.options[i].selected)
{
alert(document.getElementById("lstSelected")(i).value);
list.options[i]=null;
}
}
}
I wondered if anyone had any ideas
many thanks