This is the website: enter link description here
Right now this is the function:
$("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();
}
});
});
And this is the rest:
<a href='javascript:;' class='wtf' id='".$list['id']."'>
Rephrased: Right now, it displays an image after a user VOTES "WTF". How would I replace the Vote link with new text displaying the new value of the WTF vote (probably a result of the query)