Hey Guys,
I've stumped.
I created a function that does various things to select boxes.
Namely
Get All selected indexes,
populate array with these values
remove options
create options making sure selectedindexes are correct and other
selects dont have selected indexes as options.
Basically i needed to be able to have a situation where each select
didnt have the already selected options of other selects.
So if the possible options were A,B,C and one select had selected index
of A then the second select should only allow options B, C. Make sense
i hope?
Anyway, it all works.
But for some reason i need to add a setTimeout("function_name()", 1);
when calling the fuction, if i dont then i get an error. It seems as
if the function is running to fast for itself.
Can anyone shed some light as to why i needed to add the timeout?
Much appreciated.
Andy