SimpleModal breaks ASP.Net Postbacks

前端 未结 10 1961
名媛妹妹
名媛妹妹 2020-12-08 20:00

I\'m using jQuery and SimpleModal in an ASP.Net project to make some nice dialogs for a web app. Unfortunately, any buttons in a modal dialog can no longer execute their po

10条回答
  •  醉话见心
    2020-12-08 20:34

    if you don want modify the SimpleModal source. try this..

    After you call the modal() method add this:

    $("#simplemodal-overlay").appendTo('form');
    $("#simplemodal-container").appendTo('form');
    

    the SimpleModal plugin add two this to your markup.

    1. 'simplemodal-overlay' for the background
    2. 'simplemodal-container' containig the div that you whant as pop up modal.

提交回复
热议问题