R
R
Ruslan2016-02-02 08:39:00
JavaScript
Ruslan, 2016-02-02 08:39:00

How to cancel fancybox function?

The link has a .fancybox class. How to cancel this function on click?
This didn't help:

$('.Gallery').find('ul li a.fancybox').on('click', function(e){
  e.preventDefault;
});

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-02-02
@gangstarcj

Remove class

A
Adil Akavov, 2016-02-02
@ParenVKedax

what do you mean by cancel? Do you want to cancel some event that occurs on click?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question