How to change the name of a dialog at runtime?

I want to change the name of the jQuery interface dialog box in the open event.

I tried the following:

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

but it didn’t work, and the title remained the same.

+4
source share
1 answer

you can use the option method as described here :

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

must work

+5
source

All Articles