jquery, undefined variable problem, how to?
<p>i have this situation:</p>

<pre><code>&lt;div class="cont_picture"&gt;
&lt;?php echo "&lt;a id=\"mine_click\" href=\"#\" &gt;a test&lt;/a&gt;"; ?&gt;
&lt;/div&gt;
&lt;div id="number"&gt;&lt;?php echo $number; ?&gt;&lt;/div&gt;
</code></pre>

<p>this will give me something like: <a href="http://www.google.com" rel="nofollow">a test</a> 123456   (<em>the link is as an example only</em>)</p>

<p>then i have the jquery:</p>

<pre><code>$('#mine_click').live('click', function() {
    var strtalentnum = $('#number').text();
    $('#mine').trigger('click');
})
</code></pre>

<p>and;</p>

<pre><code>if($strtalentnum){
alert ($strtalentnum);
}
</code></pre>

<p>but the alert doesnt work. </p>

<p>Any ideas how to get this working?  see <a href="http://jsfiddle.net/qrNtK/" rel="nofollow">jsfiddle</a></p>

<p>thanks</p>
