I'm having problems with incremental values without refreshing the page using jquery.
I have html code that does this.
<li class=''>
<img src="../icons/fav_c.png" width='12' style='vertical-align:middle;'/>
<div style='float:right;padding-top:2px;width:5px'>
<span class='selector'>
<?php echo $value; ?>
</span>
</div>
</li>
I have a code that does in jquery.
val value = $('span.selector').text();
$('span.selector').text(value++);
This is not affecting my value that is being echo'd out? Can anyone see what the problem is? Does .text() not work?
Thanks!