Is something like this what you're looking for? You could use the length
attribute of the div
element's children
like this:
var slides = $('.cycle-slideshow').children().length;
if(slides <= 1) {
$('.cycle-next').css("display", "none");
} else {
$('.cycle-next').css("display", "visible");
}
$('.cycle-slideshow').on('cycle-initialized', function (e, opts, API) {});
example: http://jsfiddle.net/MCWvA/4/