Javascript Jquery code just works the first time, next time it doesnt
<p>I am a beginner in all Javascript stuff and the code is making me crazy.
I'm using Jquery</p>

<p>I have a div:</p>

<pre><code>&lt;div id="dicesDiv"&gt;&lt;/div&gt;
</code></pre>

<p>This div is load at the beginning directly with this code:</p>

<pre><code>$("#dicesDiv").load("dices.php?dice1=&lt;?php print ($lastDices[1])?&gt;&amp;dice2=&lt;?php print
($lastDices[2])?&gt;");
</code></pre>

<p>I have a link to reload this div when clicking it:</p>

<pre><code>&lt;a href = "javascript:void(0);" onclick = "javascript:rollDice();"&gt;&lt;img src="../images
/tirar_dados.png"/&gt;&lt;/a&gt;
</code></pre>

<p>This is all my javascript stuff:</p>

<pre><code>&lt;script&gt;
......

function rollDice()
{
    &lt;?php $lastDices[1] = rand(1,6);?&gt;
    &lt;?php $lastDices[2] = rand(1,6);?&gt;
   $("#dicesDiv").load("dices.php?dice1=&lt;?php print ($lastDices[1])?&gt;&amp;dice2=&lt;?php print
   ($lastDices[2])?&gt;"); 
}
&lt;/script&gt;
</code></pre>

<p>When I click the first time, it works, but when I click later it doesn't work. It doesn't make sense to me.</p>

<p>Do you know what is happening??</p>

<p>Thanks ^^</p>
