jQuery doesn't work in codepen

jQuery doesn't work in codepen
0

#1

Hi there,

I was trying to do this simple slider in js and a bit of jQuery but unfortunately jQuery is not working. Any ideas what I did wrong ?


#2

Hey, you will have to change line 21 and 22 of your js to this:

setTimeout(changeSlide,5000); setTimeout(schowaj,4500);

If you put it in between quotes it becomes a string. Also, if you use brackets behind the function name it will get executed immediately.


#3

Thanks a lot for your quick replay BenGitter!. That solved the problem :grin: