L
L
lada952018-04-19 17:06:39
JavaScript
lada95, 2018-04-19 17:06:39

There is a modal window with a form, you need to do one more, only with a different form. How to change js?

5ad8a2d72966b693593875.png
//popup
$(".callback");
varpopup = $(".popup");
var overlay = $(".overlay");
$(".callback").on("click", function() {
if($(this).hasClass("out"))
{
$(this).removeClass("out").addClass("in" );
overlay.fadeIn();
popup.fadeIn();
}
else
{
$(this).removeClass("in").addClass("out");
overlay.fadeOut();
popup.fadeOut();
}
} );
$(".close_popup").on("click",
overlay.fadeOut();
popup.fadeOut();
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question