これはウェブサイトです: ここにリンクの説明を入力してください
現在、これは関数です:
$("a.wtf").click(function(){
//get the id
the_id = $(this).attr('id');
// show the spinner
$(this).parent().html("<img src='images/thanks.fw.png'/>");
//the main ajax request
$.ajax({
type: "POST",
data: "action=wtf&id="+$(this).attr("id"),
url: "votes.php",
success: function(msg)
{
$("span#votes_count"+the_id).fadeOut();
$("span#votes_count"+the_id).html(msg);
$("span#votes_count"+the_id).fadeIn();
$("span#vote_buttons"+the_id).remove();
}
});
});
そして、これは残りです:
<a href='javascript:;' class='wtf' id='".$list['id']."'>
言い換え: 現在、ユーザーが「WTF」を投票した後に画像を表示します。投票リンクを、WTF 投票の新しい値を表示する新しいテキスト (おそらくクエリの結果) に置き換えるにはどうすればよいですか?