How to update 'title in jQuery UI Dialog?

TitleJquery Ui-Dialog

Title Problem Overview


> Possible Duplicate:
> https://stackoverflow.com/questions/2171763/jquery-ui-dialog-change-title-after-load-callback

I like to change the title from an UI Dialog after I have submitted a form in this UI Dialog. So in the callback-function after load I should suggest, but I've tried and googled without result.

Title Solutions


Solution 1 - Title

The option method will change a dialog's properties after the dialog is created.

Therefore, you can write

$(whatever).dialog('option', 'title', 'New Title');

Solution 2 - Title

you can also use this, before open it

$("#YourContainer").data('title.dialog', ' I am the new title'); 

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGuido Lemmens 2View Question on Stackoverflow
Solution 1 - TitleSLaksView Answer on Stackoverflow
Solution 2 - TitleAdam RightView Answer on Stackoverflow