prateek
prateek

Reputation: 103

adding title to jqdialog confirm box

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.

Upvotes: 1

Views: 785

Answers (1)

Swaff
Swaff

Reputation: 13621

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

Upvotes: 1

Related Questions