Cycle plugin [cycle] terminating; zero elements found by selector
Hello, I'm using the Cycle plugin to display images for some of my past projects on
http://www.berndin.com/projekte
My problem is that in Chrome i get the above error in console. ([cycle] terminating; zero elements found by selector)
I have tried manually initializing the Cycle plugin for every project div and that did not help so I went back to my initial code:
$(".slideshow").each(function(ind){
$($(this)).cycle({
fx: 'scrollHorz',
speed: 'slow',
timeout: 0,
next: "#next"+$(this).attr('id').replace('slide',''),
prev: "#prev"+$(this).attr('id').replace('slide',''),
slideExpr: 'div'
});
});
My markup looks like this repeated over again with new index-numbers:
<div class="slideshow-wrapper"> <div id="prev1" class="slidecontrol prevslide"></div> <div id="slide1" class="slideshow"> <div class="imgwrapper"><img src="projects/regina1.jpg" alt="" /></div> <div class="imgwrapper"><img src="projects/regina2.jpg" alt="" /></div> <div class="imgwrapper"><img src="projects/regina3.jpg" alt="" /></div> </div> <div id="next1" class="slidecontrol nextslide"></div> </div>