open
我想在事件中更改 JQuery UI 对话框的标题。
我尝试了以下方法:
open: function (event, ui) {
this.title = "new name";
}
但它没有用,标题保持不变。
open
我想在事件中更改 JQuery UI 对话框的标题。
我尝试了以下方法:
open: function (event, ui) {
this.title = "new name";
}
但它没有用,标题保持不变。
您可以使用此处option
描述的方法:
open: function (event, ui) {
$(this).dialog("option","title","new name");
}
应该管用