Answer the question
In order to leave comments, you need to log in
How to fix jQuery dropdown issue?
Found an example of a dropdown box on a toaster jsfiddle.net/iiil/7Ly6y/3
$('a').on('click', function(e){
e.preventDefault();
$('.modal').toggleClass('active');
});
<div class="wrap">
<div class="modal"></div>
<div class="header">
<a href="#">режим работы</a>
</div>
</div>
<a>
<a>
<p>
Answer the question
In order to leave comments, you need to log in
Why invent something? your link has a class - .popup-signin, use it in the script, at the moment the popup has not dropped out, this is how it should be:
$('.popup-signin').on('click', function(e) {
e.preventDefault();
$('.modal').toggleClass('active');
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question