The event source automatically triggered by IE8 will be recognized as the manually clicked element. The event triggered by clicking Element A will be recognized as element A under IE8. For more information, see
Var menuUrl = $ (eventSrc ). attr ("navUrl"); // if (menuUrl = undefined) {// $ (eventSrc) compatible with IE8 identifies an error, get the first // menuUrl = $ ("# left_menu-small li: first "). attr ("navUrl"); //} var browser = GetIEVersion (); if (browser = "IE8") {// $ (eventSrc) compatible with IE8 identifies an error, get the first menuUrl =$ ("# left_menu-small li: first "). attr ("navUrl ");}
For example, if you click element A to trigger the event of Element B, the event source is Element B. In IE8, the event is identified as element A, which is no problem in other browsers, there is no good solution for the moment. I am here to manually retrieve Element B under IE8