jquery ui Dialog: cannot call methods on dialog prior to initialization

后端 未结 11 1918
既然无缘
既然无缘 2020-11-27 02:52

I have an app on jquery 1.5 with dialogs worked fine. While I have a lot of .live handlers, I changed this to .on. For that, I have to update jquery (now 1.8.3 an jquerui 1.

11条回答
  •  -上瘾入骨i
    2020-11-27 03:32

    In my case the problem was that I had called $("#divDialog").removeData(); as part of resetting my forms data within the dialog.

    This resulted in me wiping out a data structure named uiDialog which meant that the dialog had to reinitialize.

    I replaced .removeData() with more specific deletes and everything started working again.

提交回复
热议问题