jQuery .on() and .delegate() doesn't work on iPad

后端 未结 7 779
北荒
北荒 2020-12-05 04:38

If you try this snippet on desktop, everything works.
Whenever you try it on iPad, it won\'t do anything.

7条回答
  •  难免孤独
    2020-12-05 05:21

    I'm not sure why doesn't it work, it's probably a bug, but there's a nice workaround. Simply put onclick="" to the div you're delegating and it will work perfectly

    Click here

    fiddle

提交回复
热议问题