Im trying to setup a slideshow linked with a grid of thumbnails like this one: http://maxgoldmandp.com/
I am using this code in each thumb for calling the corresponding slide:
<ahref="javascript:void(0);"onclick="$('#work').layerSlider(2);">Change to slide 2</a>
However, I can't find the correct syntax to setup that function or I'm doing something wrong... because it keeps saying in chrome debug console that $ is not a function... And obviously, the slider wont change to the pointed slide... I have tried to replace the "onclick" o "click" but won't work either...
Hi
Im trying to setup a slideshow linked with a grid of thumbnails like this one: http://maxgoldmandp.com/
I am using this code in each thumb for calling the corresponding slide:
<
a
href
=
"javascript:void(0);"
onclick
=
"$('#work').layerSlider(2);"
>Change to slide 2</
a
>
However, I can't find the correct syntax to setup that function or I'm doing something wrong... because it keeps saying in chrome debug console that $ is not a function... And obviously, the slider wont change to the pointed slide...
I have tried to replace the "onclick" o "click" but won't work either...
WHAT I AM DOING WRONG???
PLEASE!
Any idea?
Hey xhhb,
The problem is that you have used "$" instead of a jQuery keyword. The "$" cannot be used in this case because of certain WP compatibility reasons.
This is the proper code you will need to use: <a href="javascript:void(0);" onclick="jQuery('#work').layerSlider(2);">Change to slide 2</a>