Jquery code, records how many clicks a link has than changes its url
<p>maybe you can help</p>

<p>On my blog i have a link which is repeated inside a loop, lets say:</p>

<pre><code>&lt;a href="mysite.com/post" target="_blank" class="myclass"&gt;My link&lt;/a&gt;
</code></pre>

<p>Is there a way, maybe a jquery code that counts how many times a visitor clicks on the link with the class "myclass"; lets say after he clicks three times, I can change the target of the link from "mysite.com/post" to something else, another url.</p>

<p>Any ideeas how I can do this?</p>

<p>Ty very much!</p>
