我正在使用jquery从DB获取值并更改默认的“0”值。但是稍后我尝试将值全部返回默认值“0”;
jQuery.post('../vote_process.php', post_data, function(response) {
jQuery('#'+unique_id+' .up_votes').text(response.vote_up);
},'json');
//later
//jquery each
jquery('.up_votes').text();
// returns 0,0,0,0,0
//html
<div class="voting_wrapper" id='<?php echo $item->alias; ?>'>
<div class="voting_btn">
<div class="up_button"> </div><span class="up_votes">0</span>
</div>
</div>
如何在jquery更改后获取值?
谢谢