Jquery click not working with ipad

后端 未结 11 887
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 12:38

we have a web application which is using Jquery blockUI to open a pop up and do some action. All of this works fine on Safari, and IE 8. problem is with Ipad. none of the ac

11条回答
  •  -上瘾入骨i
    2020-12-02 13:04

    I usually use

    .bind("click touchstart", function(){
    
    });
    

    instead of:

    .click(function(){
    
    });
    

    That way you are binding the the correct event. It's also quicker, the touch responds much faster than click for some reason.

提交回复
热议问题