JQuery click() not fired in ie8

后端 未结 2 683
情深已故
情深已故 2021-01-16 10:04

I\'m not a javascript professional so I can\'t solve the following code alone.

I have a delegate function which works fine in IE7. The Problem in IE8 I figuered out

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-16 10:28

    What is subscribed to that click event?

    I would expect the following to work:

    //set up event
    $('#impressionen').click(function() { 
        alert('it works!');
    });
    
    //alert should show in all browsers
    $('#impressionen').click();
    

    However this is a simple example - there are other things that can break this. How are you setting up the click event?

提交回复
热议问题