I have the following javascript
$('.goto1').click(function() {
$('#mttslider').cycle(0);
return false;
});
What I would like is for it to repeat like so:
$('.goto1').click(function() {
$('#mttslider').cycle(0);
return false;
});
$('.goto2').click(function() {
$('#mttslider').cycle(1);
return false;
});
$('.goto3').click(function() {
$('#mttslider').cycle(2);
return false;
});
etc...
This is so that I can get every trigger – .goto(n) – to trigger the cycle function.
Any help would be much appreciated!
This will works if you element has no
classexceptgoto1, goto2etc.