Javascript repeat/loop help needed
<p>I have the following javascript</p>

<pre><code>$('.goto1').click(function() { 
    $('#mttslider').cycle(0); 
    return false; 
}); 
</code></pre>

<p>What I would like is for it to repeat like so:</p>

<pre><code>$('.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...
</code></pre>

<p>This is so that I can get every trigger - .goto(n) - to trigger the cycle function. </p>

<p>Any help would be much appreciated!</p>
