Answer the question
In order to leave comments, you need to log in
Close button disappears in fancybox when adding content inside it?
I am using fancybox 3 and I have this code:
<div style="display: none;">
<div class="form-popup">
<div class="parent">
<a href="close">крестик</a>
<div id="widget"></div>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
With this HTML, the button is always there, and by the way, the id must be unique :)
<a href="#marketWidgetmodal2" class="tooltip-window__button js-price-more">Узнать цены</a>
<!-- Окно с виджетом -->
<div style="display: none;">
<div class="form-popup" id="marketWidgetmodal2">
<div id="marketWidgetmodal"></div>
</div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question