Fre*_*Boy 4 javascript jquery jquery-ui jquery-dialog
我想在open事件中更改JQuery UI对话框的标题.
我尝试了以下方法:
open: function (event, ui) {
this.title = "new name";
}
Run Code Online (Sandbox Code Playgroud)
但它不起作用,标题保持不变.
你可以使用这里option描述的方法:
open: function (event, ui) {
$(this).dialog("option","title","new name");
}
Run Code Online (Sandbox Code Playgroud)
应该管用