点击提交按钮后如何关闭模式?我使用的是bPopup插件。
谢谢:)
这是我的代码:
<div id="popup" style="display: none;">
<span class="button b-close"><span>X</span></span>
<input type="email" value="" placeholder="email" name="EMAIL" class="required email border-color1 color1" id="mce-EMAIL">
<input type="submit" value="OK" name="sign up" id="mc-embedded-subscribe" class="button">
</div>
</div>
$(function(){
$('#pop').click(function(){
$('#popup').bPopup();
});
});
setTimeout(function(){
$('#popup').bPopup({
modalClose: true,
positionStyle: 'fixed' //'fixed' or 'absolute'
});
},3000);
答案 0 :(得分:0)
function closePop() { $(selector).bPopup().close() }
parent.closePop();