jQuery ui dialog change title after load-callback

后端 未结 5 1151
不知归路
不知归路 2020-12-13 05:09

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

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-13 05:51

    An enhancement of the hacky idea by Nick Craver to put custom HTML in a jquery dialog title:

    var newtitle= 'HTML TITLE';
    $(".selectorUsedToCreateTheDialog").parent().find("span.ui-dialog-title").html(newtitle);
    

提交回复
热议问题