Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slickNext is not a function #1613

Closed
stephane-r opened this issue Aug 5, 2015 · 3 comments
Closed

slickNext is not a function #1613

stephane-r opened this issue Aug 5, 2015 · 3 comments

Comments

@stephane-r
Copy link

Hi :)

By using $('#carousel').slickNext(); i've error in my console : slickNext is not a function (width Slick v1.5.8).

If i use my ex file (Slick v1.3.15), slickNext will work.

Do you now if it's bug on last version ?

Thank you ! :)

@simeydotme
Copy link
Collaborator

Nope 😄
since 1.4.0 the API changed, please read the readme.md again to familiarise yourself with the new syntax :)

$carousel.slick("slickNext");

@alxvallejo
Copy link

Can you refresh what that documentation is? $carousel is not in the readme

@jon-athan-hall
Copy link

jon-athan-hall commented Dec 22, 2017

@alxvallejo $carousel is the variable name that's storing the slider element. It's up to you what variable name you use. The README might be using a different variable name.

Assuming you have the slider initialized, you can grab the slider element from the DOM and store like so:

var $whateverNameYouWant = $('.slick-slider');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants