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

sourav54321 picture sourav54321  路  6Comments

aitormendez picture aitormendez  路  4Comments

hokutonanto picture hokutonanto  路  7Comments

lyhongpon picture lyhongpon  路  4Comments

MatteoZorro picture MatteoZorro  路  7Comments