【发布时间】:2012-12-14 08:56:31
【问题描述】:
我正在尝试做这样的事情: https://www.easybring.com/#registration
如您所见,“注册”在 jquery 对话框中,可以通过单击网站内的注册按钮打开。直到现在我都很好:
<a onClick="showDialog({$product['id']});">More Info </a>
我的头包含:
function showDialog(productID){
$( "#dialog-modal_"+productID ).dialog({
width: 770,
height: 590,
modal: true,
open: function(event, ui){
}
});
}
当然我还有 div:
<div id="dialog-modal_{$product['id']}" style="display: none;">
<iframe src="index.php?act=showProduct&id={$product['id']}" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>
</div>
但我想做的是通过网站 url 调用该 jquery 特定对话框:#registration。
我该怎么做?
非常感谢!
【问题讨论】:
标签: javascript jquery html css