slickGoTo - Uncaught TypeError: undefined is not a function

Created on 4 Mar 2015  路  8Comments  路  Source: kenwheeler/slick

Hi,

I am trying to realize a simple button with the "slickGoTo" method to slide to another slide, but all time I get the error "Uncaught TypeError: undefined is not a function".

Do you have an idea, where I am wrong?

Here my Fiddle: http://jsfiddle.net/N6wfG/99/

Most helpful comment

The way you call methods has changed. You now need to call slick first and pass it the name of the method you want to call, like this:

slider.slick('slickGoTo', 1)

All 8 comments

The way you call methods has changed. You now need to call slick first and pass it the name of the method you want to call, like this:

slider.slick('slickGoTo', 1)

Oh yeah, this works fine. Thanks for that!

Thanks you babe

Thank you @evalunamain

just out of curiosity @evalunamain what was the reason for this change?

Thank you so much @evalunamain..
It's very help for me.. :+1:

Awesome @evalunamain
Finally got my slick to work with that!
Thank u =)

i am getting this error
uncaught TypeError: $(...).slick is not a function at interval ((index):807)

at this line
$('.single-item').slick('slickNext');
and also on this line
$('.single-item').slick('slickGoTo', goToThisIndex, false);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Libig picture Libig  路  3Comments

rahi-rajeev picture rahi-rajeev  路  3Comments

xitongzou picture xitongzou  路  3Comments

REPTILEHAUS picture REPTILEHAUS  路  3Comments

eirikrlee picture eirikrlee  路  3Comments