Search

4/08/2008

option.onclick.event.is.invalid.for.ie

demo: http://chunghe.googlecode.com/svn/trunk/experiment/option.onclick.event.is.invalid.for.ie/index.htm
Option onClick in Internet Explorer

Remove the events from the options, use an event directly on the select instead.

Internet Explorer treats select boxes slightly different than the rest of the document, (if you've ever read anyhting about "windowed controlls" you know what I'm talking about)

I'm thinking IE doesn't notice events in childnodes of select elements, only the select elements themselves.

沒有留言: