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.
Has anyone an idea?
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.
Has anyone an idea?
An enhancement of the hacky idea by Nick Craver to put custom HTML in a jquery dialog title:
Even better!
I tried to implement the result of Nick which is:
But that didn't work for me because i had multiple dialogs on 1 page. In such a situation it will only set the title correct the first time. Trying to staple commands did not work:
I fixed this by adding the title to the javascript function arguments of each dialog on the page:
I have found simpler solution:
Hope that helps!
Using dialog methods:
Or directly, hacky though:
For future reference, you can skip google with jQuery. The jQuery API will answer your questions most of the time. In this case, the Dialog API page. For the main library: http://api.jquery.com