slickNext is not a function

Created on 5 Aug 2015  路  3Comments  路  Source: kenwheeler/slick

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 ! :)

Most helpful comment

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

$carousel.slick("slickNext");

All 3 comments

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

$carousel.slick("slickNext");

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

@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');

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jamesinealing picture jamesinealing  路  3Comments

jeremymandel picture jeremymandel  路  3Comments

eirikrlee picture eirikrlee  路  3Comments

barzev picture barzev  路  3Comments

hoghamburg picture hoghamburg  路  3Comments