Answer the question
In order to leave comments, you need to log in
Why doesn't preventDefault() work?
Why doesn't preventDefault() work?
function showPopupOrder(event) {
event.preventDefault();
$('body').append('<div class="overlay"></div>').fadeIn("slow");
$('.popup-order').fadeIn("slow");
}
Answer the question
In order to leave comments, you need to log in
You forgot to pass an event to a function.onclick="showPopupOrder(event)"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question