Creating SELECT MULTIPLE via DOM methods
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Creating SELECT MULTIPLE via DOM methods

From: Adam Tilghman <atilghman@gmail.com>
Date: Thu Dec 15 2005 - 20:20:59 CET

Hi all,

I have found that IE doesn't seem to respect the <SELECT> "multiple"
attribute when set using DOM methods, although the attribute/property
seems to exist and is updated properly. Those changes just don't make
it onto the screen.

Am I doing something wrong here?
If not, is there a better feature test I can use than
"appName.match()"?

if (navigator.appName.match(/Internet Explorer/)) {
   unselist = document.createElement("<SELECT MULTIPLE>");
} else {
   unselist = document.createElement("SELECT");
   unselist.multiple = true;
}

Thanks!
Received on Fri Dec 23 20:22:56 2005