Answer the question
In order to leave comments, you need to log in
How to get number of ajax posts?
Good morning everybody!
How can I get the number of posts via ajax?
var filter_handler = function(page){
var filter = $('#filter');
var data = filter.serialize();
if( page ) data += '&paged=' + page;
$.ajax({
url:filter.attr('action'),
data:data, // данные
type:filter.attr('method'),
beforeSend:function(xhr){
filter.find('button').text('Загрузка...');
},
success:function(data){
filter.find('button').text('Фильтровать');
$('#response').parent().html(data);
}
});
return false;
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question