onclick event is not working on ipad and tablet

后端 未结 3 415
甜味超标
甜味超标 2021-01-12 23:39

onClick event not working on tablet,ipad? it is perfectly working on Pc browser but not working for touch events , i tried .binding(),.on() and many thing but they are not

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-13 00:01

    You can use tap, swipe, taphold etc events for the tablets,touch you can do this like

    $('htmlelement').bind('click', ClickFunction ).bind('tap', ClickFunction );
    

    Here are the list of jquery mobile events events

    Also try to use the jquerymobile

提交回复
热议问题