Created by @tomaskrejci79 in Q&As
@tomaskrejci79
@tomaskrejci79

Hi, I need send ajax request and catch response like in success or error event below. Hi can I do it please?

$.ajax({
    method: "GET",
    url: {link Search, query: ''},
    dataType: "json",
    data: data,
    success: function(data) {
        ...do something;
    },
    error: function(data) {
        ...do something else;
    }
});

Sign in to post a reply