jQuery - change/add an event on a link
<p>I have this link :</p>

<pre><code>&lt;a href="#" onClick="addSide('1');return false"&gt;Link&lt;/a&gt;
</code></pre>

<p>and I want that, when I click on a button (for example), the value of addSide in that link grow. Such as first click on the button I want to pass to the addSide function 1, second click 
addSide('2'), and so on...</p>

<p>So, is it possible change value of the addSide function, trought jQuery, by editing this and replace with somethings like <code>addSide('another_value')</code>?</p>

<p>EDIT
I see is not so clear my question. So I give an example :)</p>

<p>This is the code I want to edit :</p>

<pre><code>&lt;div class="trackon" id="trackline"&gt;
    &lt;span class="trackbotton1"&gt;
        &lt;a class="lblueb" href="#" onClick="addSide('');return false"&gt;Add Side&lt;/a&gt;
    &lt;/span&gt;
&lt;/div&gt;
</code></pre>

<p>I wrote this :</p>

<pre><code>$('#trackline').find('.trackbotton1').children().attr('onclick', 'alert("example");return false');
</code></pre>

<p>but the function doesnt change...</p>
