Reputation:
I am trying to create a jquery image gallery but I am facing a problem in next and prev and I should follow the structure which i am using in fiddle demo. Initially I need to show two images on click of next the other images/video should visible
Here it is what I have tried.
I should not use any plugins
Upvotes: 1
Views: 104
Reputation: 1973
This works: http://jsfiddle.net/T657N/40/
I changed var $tDiv = $('#thumbs div');
to var $tDiv = $('#thumbs > div');
You only need to select the direct descendants of #thumbs
.
Upvotes: 1