Hi Rob,
According to Microsoft's "HTML and DHTML Reference," IE's onclick
event (as well as others) doesn't apply to the option element:
http://msdn.microsoft.com/en-us/library/ms536913%28VS.85%29.aspx
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Dec 10, 2009, at 3:53 PM, rob wrote:
I'm having some problem with selectors in Internet Explorer. I have
this demo setup that is basically a modified "linked menus"
application. When you select something from one menu, it updates the
contents in it's child menu.
For some reason Internet Explorer will not read the correct selector.
I have tested the following: I've tried each of these selectors with
and without "this".
$(".parentMenu").click();
$("#parentMenu > .parentMenu").click();
$("#parentMenu > option").click();
This was the only one I got to trigger anything.
$("#parentMenu").click();
The elements in question here are:
<select class='selectMenu' id='parentMenu'>
<option class='parentMenu'>
</select>
My question is:
Why do all the other browsers recognize the content within the
<select> except internet explorer. It seems like it won't call any of
the option elements, whether they're created by script or loaded fresh
from the server.
Any ideas??