You are here: irt.org | BBS | Re: Remove options from a Select object [This BBS is closed]
Posted by Martin Webb on June 29, 1998 at 03:35:17:
In Reply to: Remove options from a Select object posted by Rachel on June 24, 1998 at 09:08:04:
: I have a piece of Javascript code to remove options from a select box.
: for (var k=0; k : For some reason, it doesn't work well. There always a few options left in the box. The line: history.go () Reloads the current page, thus undoing the chnages to the select options list. You are here: irt.org | BBS | Re: Remove options from a Select object [This BBS is closed]
: formname.selectname.options[k]=null;
: history.go (0);
: }
: Does anyone know why? Thanks.
: Rachel
Follow-ups: