Popup Window stopped working after jQuery update

后端 未结 2 1589
南方客
南方客 2021-01-27 08:54

I have been using this script for a while now ( originally written by Soh Tanaka but source website is gone) - it pops up a window over a darkened page with a close button that

2条回答
  •  遇见更好的自我
    2021-01-27 09:27

    .live has been removed from 1.9. You can replace this syntax:

    $('selector').live('event', function(e) {
    

    With:

    $(document).on('event', 'selector', function(e) {
    

提交回复
热议问题