How can I open a second jquery-mobile popup from the first popup

前端 未结 1 986
小蘑菇
小蘑菇 2020-12-22 01:53

Using jquery-mobile I am trying to open a second popup (to confirm) from the first popup when the user clicks delete.

I have seen a similar thread with working jsfi

相关标签:
1条回答
  • 2020-12-22 02:37

    Thanks to @ezanker, I have a solution. Following the popup api link from the other post, 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.

    0 讨论(0)
提交回复
热议问题