开发者

How to change the title of dialog at runtime?

开发者 https://www.devze.com 2023-03-25 18:08 出处:网络
I wanna change the title of the JQuery UI dialog in the open event. I tried the following: open: function (event, ui) {

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

精彩评论

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