Reputation: 135
How do I have two set of the next/ prev on a jquery cycle I currently have one set here
$('#s10').cycle({
fx: 'fade',
delay: -1000,
next: '#nexttop',
prev: '#prevtop'
});
But can't seem to figure out how to add a second set to the next: and prev: lines.
Upvotes: 0
Views: 515
Reputation: 93003
Instead of using IDs like #nexttop
and #prevtop
, use a class shared by two distinct elements:
$('#s10').cycle({
fx: 'fade',
delay: -1000,
next: '.next',
prev: '.prev'
});
http://jsfiddle.net/mblase75/yThgx/
Upvotes: 1