[Javascript] deleting all options

Peter Brunone peter at brunone.com
Wed Feb 1 13:53:20 CST 2006


   I've used it ever since Netscape 4 (and IE 4 as well); I just assumed it was part of the HTML forms spec back in the day.

Peter

From: "James Conley" Conleyj at kubota-kma.com

 Oddly enough this works in IE - does it work in other browsers as well?   Normally .length is read-only for arrays and such.  
james c    From: javascript-bounces at LaTech.edu On Behalf Of Peter Brunone
  Can you still set options.length = 0?

Also, innerHTML = "" comes to mind (this might possibly be fastest, though not supported by earlier browsers)...

Peter 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060201/1745087e/attachment.htm>


More information about the Javascript mailing list