A
A
Alexander Shvedov2019-09-25 12:18:16
JavaScript
Alexander Shvedov, 2019-09-25 12:18:16

jquery output search results how to do?

I have a backend where an ajax request goes. It receives data. All requests are entered in the search form. How can I display search results below the search form itself? That is, how to implement a popup list? Can someone give the result to see how to do it?
I will be very grateful

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GitJedi, 2019-09-25
@GitJedi

$.ajax({
        url: 'your/url',
        type: 'post',
        data: $(form).serialize(),
    },
   success: function (response) {

     var $response = $(response).find('elem');
   }
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question