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
精彩评论