Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Remove options from a Select object - June 24, 1998 at 09:08:04

You are here: irt.org | BBS | Remove options from a Select object [This BBS is closed]

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 {
formname.selectname.options[k]=null;
history.go (0);
}

For some reason, it doesn't work well. There always a few options left in the box.
Does anyone know why? Thanks.

Rachel
Follow-ups:

You are here: irt.org | BBS | Remove options from a Select object [This BBS is closed]

©2018 Martin Webb