我有一个自动打开对话框的页面。之前,你必须点击它关闭,但现在它会立即自动关闭,甚至没有在对话框中看到什么。这是我的代码:
if (jQuery('#renewalNotice').length)
{
jQuery('#renewalNotice').dialog({ width: 518, title: 'Important Notice', autoOpen: true, draggable: false, modal: true, resizable: false, stack: false });
}
<div id="renewalNotice" style="display: none;">
<div id="subscription-notice">
<span class="daysLeft"<?=($daysRemaining <= 5 ? ' style="color: #aa0000;"' : '')?>><?=$daysRemaining?></span>
<span class="ksDetails">
Call us: +61 3 3333 3333<br />
</span>
</div>
</div>