1
1
1ss1za2018-02-15 14:26:49
JavaScript
1ss1za, 2018-02-15 14:26:49

Why is there no addition after cleaning?

$('.product-btn').click(function() {
    /* очищаю содержимое попапа  */
    $("#popup_inner").empty();
   /* теперь по очереди переношу в сплывающий блок заголовок */
   $(this).parent().find('h3').clone().appendTo("#popup_inner .modal-desc");
   $(this).parent().find('.size').clone().appendTo("#popup_inner .modal-desc");
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kreotech, 2018-02-15
@1ss1za

Well, I'm assuming you have .modal-desc cleared from the popup too. And where do you want the script to add the elements?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question