jQuery click listener on <object> in IE failing

前端 未结 1 1461
失恋的感觉
失恋的感觉 2021-01-25 11:23
$(\"#listView object.modal\").click(function(){
        // Get the ID of the clicked link:
        var link = $(this).closest(\"h2\").attr(\"title\");
        var id = $         


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-25 11:49

    The strange thing is that is working in other browsers. Not that it doesn't work in IE. Have a look at this question. Flash objects will always consume the onclick event and not propagate it in javascript code.

    0 讨论(0)
提交回复
热议问题