George Newton
George Newton

Reputation: 3293

Dialog loads on page before it disappears

I'm using JQuery UI dialog that pops up when a user clicks a button (otherwise, it should be hidden). When the page loads, the dialog is actually seen on the page for a few seconds before disappearing (because the dialog is embedded onto the page). Is there anyway to prevent this appearance when loading?

Upvotes: 0

Views: 142

Answers (1)

Rituraj ratan
Rituraj ratan

Reputation: 10378

when you set Dialog box html , set this dialog box css

{display:none}

or if you want by jQuery then onpageload apply

$(document).ready(function(){
$("#dialgboxid").hide();
});

now if you load page then this problem not appear and when you open dialog box by click it appear correctly

Upvotes: 1

Related Questions