Click a element to trigger the event of B element to be identified under IE8 as a element _javascript technique

Source: Internet
Author: User
var Menuurl = $ (EVENTSRC). attr ("Navurl"); 
if (Menuurl = = undefined) {//compatible IE8 $ (EVENTSRC) identification error, take first 
//Menuurl = $ ("#left_menu-small Li:first A"). attr (" Navurl "); 
var browser = getieversion (); 
if (browser = = "IE8") {//compatible IE8 $ (EVENTSRC) Recognition error, take the first 
Menuurl = $ ("#left_menu-small Li:first A"). attr ("Navurl"); 

For example: Click a element trigger B element event, according to the reason of the event source is B element, in the IE8 will be recognized as a element, in other browsers no problem, temporarily no good solution, I am here just IE8 under the manual to get B element

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.