Answer the question
In order to leave comments, you need to log in
Display goods after sorting through ajax?
Bitrix. On the screen there are buttons for sorting by Name and Price, in each - in ascending and descending order. The problem is that after sorting, the page reloads completely, and the state of the buttons is reset to the original ones. Explain where to modify the code so that the rendered content is loaded via ajax and, accordingly, the page is not reloaded.
Where to read manuals about this understandable?
Answer the question
In order to leave comments, you need to log in
For example, you have a form<form id="sort-form"></form>
$('#sort-form').on('submit', function(e){
e.preventDefault();
// Ваш код для отправки ajax-запроса
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question