user1409364
user1409364

Reputation:

Jquery-Image-Gallery-issue

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

http://jsfiddle.net/T657N/41/

Upvotes: 1

Views: 104

Answers (1)

Maros
Maros

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

Related Questions