1

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/

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

4 Comments

i edited my structure in fiddle can you send a fiddle demo according to it please
Here you go: jsfiddle.net/T657N/43. Now whatever items you add to that gallery should have class thumb-layout
If I want to show 4images initially after that i need to show another 4 images what to change in that
Can you help me I need to show 4images initially and onclick of next the other 4images should display

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.