LightGallery is counting wrong number of images.. here is jsfiddle code... In this jsfiddle i am append dynamical element with a div that is in html file.. Please check manually ... Why lightgallery is count wrong images ?
mintu_2 0 Newbie Poster
Recommended Answers
Jump to Postfor(var i =0;i<=imagesarray.length-1;i++){
Changed line 12?
Jump to PostIf you have 5 items and then loop 0 to 5. That's one too many.
Your choice of -1 or change i<= to i< whichever you can wrap your head around. The right way would be to drop the = sign but the key item is for you to think …
All 8 Replies
rproffitt 2,701 https://5calls.org Moderator
mintu_2 0 Newbie Poster
rproffitt 2,701 https://5calls.org Moderator
mintu_2 0 Newbie Poster
rproffitt 2,701 https://5calls.org Moderator
mintu_2 0 Newbie Poster
rproffitt 2,701 https://5calls.org Moderator
mintu_2 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.