CSS-Tricks / AnythingSlider

A jQuery Slider plugin for anything.
http://css-tricks.github.io/AnythingSlider/
GNU Lesser General Public License v3.0
1.15k stars 380 forks source link

Parameter on function to call plugin #518

Closed multiformeingegno closed 11 years ago

multiformeingegno commented 11 years ago

jQuery('#slide-jump').click(function () { jQuery('.anythingSlider').anythingSlider(6); });

What's the number in .anythingSlider(6); ?

Thanks in advance! :)

Mottie commented 11 years ago

You can call the plugin like this:

var changeToSlide = 6;
jQuery('.anythingSlider').anythingSlider(changeToSlide);

This is described in the documentation.

Please use these github issues for reporting bugs or enhancement requests. If you have a general question that you can't find in the documentation (wiki tab above) or the documentation isn't clear enough, then please use the CSS-Tricks forums. Thank you.