hi all
i do have a mutiple select box and an array. i need to make a function that will remove all the things i have added.
when i added my items i incremented a var called number
and here is my delete function that is not working:
what's wrong ?
Best regards X-),
Elise
i do have a mutiple select box and an array. i need to make a function that will remove all the things i have added.
when i added my items i incremented a var called number
Code:
function add()
{
boxSelectedCond.options[number] = new Option(toto + " " + tata + " " + tutu ,number);
storeQuery[number]= new Array(toto,tata,tutu);
number ++;
}
Code:
for (i=0; i<number;i++)
{
document.forms[0].Sel_cond.options[i]= null;
storeQuery[i] = new Array();
}
Best regards X-),
Elise