0

in this example http://sorgalla.com/projects/jcarousel/examples/static_controls.html i need an active state on li so it should look like this whenever I slide.

Any idea anyone? enter image description here

test
  • 2,429
  • 15
  • 44
  • 81

1 Answers1

1

try this:

$('.jcarousel-control a').click(function(e){
   e.preventDefault();
   var txt = $(this).text();
   $('.jcarousel-list li').removeClass('active');
   $('.jcarousel-list li:eq(' + (txt - 1) + ')').addClass('active')
})
Ram
  • 143,282
  • 16
  • 168
  • 197