dimanche 23 juillet 2017

What is a good way to write this jQuery code in only JavaScript?

can someone enlighten me with the correct answer to this?

How to write this jquery:

$(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
$(this).ekkoLightbox();
});

In Javascript?

P.s.: My problem is that I can't use to parallax.js (by pixelcog) and Ekko Lightbox on the same page. So probably it has to do with the jquery version, because parallax.js only works with jquery v1.11

Aucun commentaire:

Enregistrer un commentaire