开发者

How to change the title of dialog at runtime?

I wanna change the title of the JQuery UI dialog in the open event.

I tried the following:

open: function (event, ui) {
    this.title = "new 开发者_JAVA百科name";
}

but it didn't work and the title remained the same.


you can use the option method as described here:

open: function (event, ui) {
    $(this).dialog("option","title","new name");
}

should work

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜