вроде бы разобрался все работает
$(document).ready(function(){
$('.buttonnamber').click(function(e){
e.preventDefault();
var page = $(this).attr("page");
$.ajax({
type: 'POST',
url: '../jpaginate.php',
beforeSend: function() {
$("#loadl").fadeIn(400);
},
data: "page="+page,
success: function(data) {
$('#ansverrev').html(data);
},
error: function(xhr, str){
alert('Возникла ошибка: ' + xhr.responseCode);
}
}).done(function() {
$("#loadl").fadeOut(400);
})
});
});