A
A
Alexander Gamov2017-02-26 17:08:11
JavaScript
Alexander Gamov, 2017-02-26 17:08:11

Which plugin to choose for independent popups?

Actually, the task is to transfer the block lying next to the activated element to the inline popup.
We need a button that, on click, displays a product card in the form of a popup.

<div class="card">
<--! Сама карточка -->
<a href="#">Подробно</a>
    <div class="hidden big_item">
    <--! Более подробная карточка -->
    </div>
</div>

You need to find a plugin that would eat a similar structure as content (usually indicates the class of the block or is taken from the href of the link)
$(this).parents('.card').children('.big_item');

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Gamov, 2017-02-26
@slowdream

I liked arcticModal

$('.f_look').click(function() {
    $(this).parents('.card').find('.big_item').arcticmodal();
    return false;
  });

A
Artem, 2017-02-26
@devspec

bootboxjs.com meets your requirements

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question