jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 736 forks source link

how can I get the initial index of the current target #766

Closed zjafei closed 9 years ago

zjafei commented 9 years ago

Result like this qq 20150703093141

I use $('#jcarousel').jcarousel('target').index(); but not work right I look the source code find Pagination Plugin can get the current page, but this Plugin must work with some element and create some elements. I don't want to do that. so could you tell me how can I get the initial index of the current target just with jCarousel core code?? good luck happy work

jsor commented 9 years ago

This should work. But hard to say without actually seeing some code. You probably need to call this method in an event handler, eg. on createend.

zjafei commented 9 years ago

ok thx