i have this situation:
<div class="cont_picture">
<?php echo "<a id=\"mine_click\" href=\"#\" >a test</a>"; ?>
</div>
<div id="number"><?php echo $number; ?></div>
this will give me something like: a test 123456 (the link is as an example only)
then i have the jquery:
$('#mine_click').live('click', function() {
var strtalentnum = $('#number').text();
$('#mine').trigger('click');
})
and;
if($strtalentnum){
alert ($strtalentnum);
}
but the alert doesnt work.
Any ideas how to get this working? see jsfiddle
thanks