jsor/jcarousel — Issue #325: How to disable / enabled button 
Author: jhonronell
Created: 2012-02-25 04:50:55+00:00
State: open

Hello!

How do I enable or disable external button?

function mycarousel_initCallback(carousel) {
jQuery('.jcarousel-control a').bind('click', function() {
carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
return false;
});

jQuery('.jcarousel-scroll select').bind('change', function() {
carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value);

return false;
});

jQuery('#mycarousel-next').bind('click', function() {
carousel.next();
return false;
});

jQuery('#mycarousel-prev').bind('click', function() {
carousel.prev();
return false;
});

};