tobbbe
6/15/2016 - 7:12 AM

open fancybox popup on demand (ajax, success...)

open fancybox popup on demand (ajax, success...)

$.fancybox($('#content-div'),
{
    padding: 15,
    closeBtn: true
});
<div style="display:none">
    <div id="content-div">
        <h1>Tack för ditt mail!</h1>
    </div>
</div>