Like when you get data via AJAX SMARTY template engine?

Use Smarty, iznachalno zagruzhatsya 6 blocks, with names, age, etc.
At the bottom there is a button "Show more"
How to make clicking the button show more, with AJAX loaded 6 elements?
July 2nd 19 at 18:24
1 answer
July 2nd 19 at 18:26
Solution
getNextSixItems function() {
$.ajax({
type: 'POST',
url: "/url/to/some/action/",
dataType: 'json',
success: function (data) {
here your code/ 
}
});
};

$(document).on('click', '.showMore', function (e) {
e.preventDefault();
getNextSixItems();
});

Find more questions by tags SmartyAJAXjQueryJavaScript