Closed sjpeng closed 7 years ago
Doesn't that work for you?
//...
$('#test').append(str).find('.jcarousel').jcarousel();
yes! look like it's work, but I couldn't used prev/next button and picture doesn't cycle.
Yes, you need to use the control and autoscroll plugins.
Thank you, Is working! BTW, if possible more interactive when I click image? It can work before dynamically create jcarousel.
$('img').on('click', function(e){
console.log('click!');
});
You can do that with delegated events:
$(document).on('click', '.jcarousel img', function(e){
console.log('click!');
});
ok, thank you a lot.
if possible support dynamic create? e.g.