jQuery Dialog not showing content after being hidden

So the autoOpen:false on the jQuery dialog instantiation doesn’t hide the div fast enough sometimes. You can skirt this by setting the display to none (display:none) on the dialog div you made, but then when you actually do load up the dialog after someone clicks an anchor, or whatever, the content of the div doesn’t show up because the child divs have all inherited the display:none;

Just call the show method after the dialog load to skirt this.

$(“#detailPopin”).dialog(‘open’);
$(“#detailPopin”).show();

One thought on “jQuery Dialog not showing content after being hidden”

Leave a Reply

Your email address will not be published. Required fields are marked *