0

单击提交按钮后如何关闭模式?我使用 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);
4

1 回答 1

0
function closePop() { $(selector).bPopup().close() }

parent.closePop();
于 2015-11-11T15:45:51.347 回答