You are selecting all <span class="votes">
by using
$('.votes').text( data );
You need to limit it to just the sibling of the form
var votes = $(this).prev('.votes');
votes.text( data );
So your javascript would look like -
$(document).ready(function() {
var form = $('.vote_ajax');
form.bind('submit',function () {
//get the sibling vote
var votes = $(this).prev('.votes');
$.ajax({
type: $(this).attr('method'),
url: $(this).attr('action'),
data: $(this).serialize(),
complete: function(data){
},
success: function (data) {
$('.success_message').hide().html('');
$(form)[0].reset();
console.log("working");
// update just the sibling vote
votes.text( data );
},
error: function(errors) {
alert('Something went to wrong.Please Try again later...');
}
});
return false;
});
});
jsFiddle Example - http://jsfiddle.net/GhMfM/1/