hey guys, here's my function :
$(".home .up_0").click(function() {
$.post("includes/vote.php",
{truc : $(this).attr("id")},
function(data) {
if(data==1) {
$(this).parents('.home').find('.score_neutre').append(
$(this).parents('.home').find('.score_neutre').val()+1
);
} else {
alert("Error !");
}
},
"json"
);
});
When I click everything works but it doesn't change the .score_neutre
value (which is 1 and I want it to change to 2)