Originally Posted by Philip M
No - var r = document.getElementById("list1").value; is just fine.
are you sure about that always and everywhere?
i know there's got to be a reason i've been doing that stupid x.options [x.selectedIndex ] crap for years...
i'm almost certain that it won't work in IE6, but seeing as IE6 sucks and i don't have a copy of IE6, I'll concede the point.
makes me wonder how long setting the .value of a select has worked as well...
If that's the only reason, screw IE6, i'm going for the .value from now on.
BROWSER STATS [% share]
(2013/10/31) IE7:0.5, IE8:8.6, IE9:5.3, IE10:12.3, FF:17.7, CH:41.8, SF:8.1, MOBILE:20.4