Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: $(...).lightGallery is not a function #452

Closed
HamzaAbdullahMoh opened this issue Sep 23, 2016 · 4 comments
Closed

TypeError: $(...).lightGallery is not a function #452

HamzaAbdullahMoh opened this issue Sep 23, 2016 · 4 comments

Comments

@HamzaAbdullahMoh
Copy link

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!!

@sachinchoolur
Copy link
Owner

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

You can refer dynamic mode demo here

@HamzaAbdullahMoh
Copy link
Author

I already did and directly before it!!

@HamzaAbdullahMoh
Copy link
Author

HamzaAbdullahMoh commented Sep 24, 2016

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

@HamzaAbdullahMoh
Copy link
Author

HamzaAbdullahMoh commented Sep 24, 2016

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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants