Select is reset when related label is clicked

In IE, when a <label> is attached to a <select> element, and the user clicks the label, the <select> is selected, but its selectedIndex becomes 0.

Test page Workaround is not included
Reported by: splintor.

Explorer 5-6 Windows | Reported on 21 September 2005.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.




Search reports by browser:

Atom RSS

Comments

(Add your own)

1 Posted by splintor on 22 September 2005 | Permalink

Please note that in my linked blog post, I added a link to MSDN article which reports this problem, and also suggested a better workaround.

2 Posted by Rob on 23 September 2005 | Permalink

For those fighting this bug, check out the xDOM suite: http://slingfive.com/pages/code/xdom/

It's a set of DHTML Behaviors which transparently fix this and other IE bugs.