Is it possible to open popup in popup(parent) in jquery mobile?

前端 未结 2 871
走了就别回头了
走了就别回头了 2021-01-25 23:50

I am using Jquery mobile 1.4.2. Is it possible to open popup(child popup) in popup(parent popup) ?

I tried this way,



        
2条回答
  •  不思量自难忘°
    2021-01-26 00:31

    I had a similar question and was referred here. Following the popup api link above, I found a simple solution that doesn't involve a plug in.

    $(document).on("pageinit", function () {
      $('#del').click(function (e) { // e is the event
        setTimeout(function () {
            $("#popupDelete").popup("open")
        }, 100);
      });
    });
    

    I have a jsfiddle to demo this.

提交回复
热议问题