Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update 'title in jQuery UI Dialog? [duplicate]

Possible Duplicate:
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.

like image 847
Guido Lemmens 2 Avatar asked Feb 02 '10 02:02

Guido Lemmens 2


2 Answers

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

Therefore, you can write

$(whatever).dialog('option', 'title', 'New Title');
like image 62
SLaks Avatar answered Oct 21 '22 15:10

SLaks


you can also use this, before open it

$("#YourContainer").data('title.dialog', ' I am the new title'); 
like image 42
Adam Right Avatar answered Oct 21 '22 14:10

Adam Right