Tech by Tbone
Tech by Tbone

Reputation: 69

Trying to have multiple jquery dialog boxes

I know there is a similar question to this one Multiple Jquery modal Dialog Boxes in one page? but it does not give me the answer I need

here is the js:

$("#dialog").dialog({
    autoOpen:false,
    modal:true,
    show:"puff",
    hide:"puff"
});

$(".opener").click(function () {
    $("#dialog").dialog("open");
    return false;
});

$("#dialog2").dialog({
    autoOpen:false,
    modal:true,
    show:"puff",
    hide:"puff"
});

$(".opener2").click(function () {
    $("#dialog2").dialog("open");
    return false;
});

Even tho on #dialog2 it says autoOpen:false it auto opens anyway... does anyone have a solution? Here is my website timothy.techbypaul.com when you first arrive it will popup...

Upvotes: 0

Views: 1271

Answers (1)

VisioN
VisioN

Reputation: 145398

There is another initialization of your second dialog with autoOpen: true option.

Check it in your main script in jQuery(document).ready section.

Upvotes: 1

Related Questions