开发者

adding title to jqdialog confirm box

开发者 https://www.devze.com 2023-02-21 06:15 出处:网络
How开发者_运维百科 can i add a title to a jqdialog confirm box? I have a message that needs to displayed in the center and the title should be displayed on top.

How开发者_运维百科 can i add a title to a jqdialog confirm box? I have a message that needs to displayed in the center and the title should be displayed on top. Currently i am getting my message displayed on top with no default title.


You can add a title to the title attribute of the div containing your dialog

<div class="demo">  

    <div id="dialog-modal" title="Whatever you title is....">     

        <p>Blah blah blah</p>
    </div>

</div>


$(document).ready(function() {

    $("#dialog-modal").dialog({
        height: 140,
        modal: true
    });
});

Example here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号