Answer the question
In order to leave comments, you need to log in
How to pass product ID to FANCYBOX3 modal window?
Tell me please.
There is a product, when you click on it, a fancybox3 modal window opens with an order form. How to pass the product ID to this form, for example, in input type="hidden". Thank you very much in advance.
<a class="slide2-order" id="item1" data-fancybox data-src="#order-popup" href="javascript:;"></a>
<div class="popup" id="order-popup">
<form action="/send_form/send.php" method="post" enctype="multipart/form-data">
<input type="hidden" value="ID товара">
</form>
</div>
<script type="text/javascript">
$("[data-fancybox]").fancybox({
});
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question