Lightgallery: TypeError: $(...).lightGallery is not a function

Created on 23 Sep 2016  路  4Comments  路  Source: sachinchoolur/lightGallery

I am using the dynamic mode through the anchor tag and I get this error in the console:

TypeError: $(...).lightGallery is not a function
<anonymous> gallery.js:2
m.event.dispatch() jquery.min.js:3
m.event.add/r.handle() jquery.min.js:3

please bear in mind I am not a pro with JavaScript!!

All 4 comments

Make sure that you have included lightgallery.js in your document.

You can refer dynamic mode demo here

I already did and directly before it!!

this is the code
https://jsfiddle.net/hamzaabdullahmoh/c4quqf0v/#&togetherjs=qz2kFk037N
Please help: Mr. @sachinchoolur

Wooooooooooo Haaaaaa I finally solved it, and the problem was maybe with local version I have!!
When I switched to the cdnjs version it worked PERFECT!!!
a huge THANKS for all of you!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Allmedialab picture Allmedialab  路  6Comments

FDiskas picture FDiskas  路  5Comments

aitormendez picture aitormendez  路  4Comments

Jeonghyun-Kim picture Jeonghyun-Kim  路  3Comments

dreamzsiva picture dreamzsiva  路  3Comments