Simon Willison’s Weblog

Subscribe

Friday, 13th December 2002

Clearing a select box

Deep in to coursework now, but I just spent more time than I care to mention struggling with what should have been a very simple task; removing all of the items from an HTML select box using Javascript. Here’s the code that was causing me problems:

[... 217 words]

2002 » December

MTWTFSS
      1
2345678
9101112131415
16171819202122
23242526272829
3031