4
我想在open
事件中更改JQuery UI对话框的标题。如何在运行时更改对话框的标题?
我试过如下:
open: function (event, ui) {
this.title = "new name";
}
,但它没有工作和头衔保持不变。
我想在open
事件中更改JQuery UI对话框的标题。如何在运行时更改对话框的标题?
我试过如下:
open: function (event, ui) {
this.title = "new name";
}
,但它没有工作和头衔保持不变。
可以使用option
方法描述here:
open: function (event, ui) {
$(this).dialog("option","title","new name");
}
应该工作