jQuery modal dialog with postbacks in ASP.NET

前端 未结 1 538
一整个雨季
一整个雨季 2020-12-24 03:25

I just upgraded my jQuery/jQuery UI to the latest version (jQuery 1.9.0, jQuery UI 1.10.0), and it seems to have broken some of my jQuery UI dialog functionality.

In

相关标签:
1条回答
  • 2020-12-24 03:43

    OK, so this seems to be the fix for jQuery UI v1.10:

    $("#newInsurance").dialog({
        autoOpen: false,
        appendTo: "form",
        modal: true
    }).parent().css('z-index', '1005');
    

    In jQuery UI v1.10 they added an appendTo property, which seems to do the same exact thing as calling .parent().appendTo($("form")). The trick to the fix is the z-index.

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