Featured image of post ajax get sample

ajax get sample


    function get($value, $type) {
        $.ajax({
            type: 'get',
            url: 'https://toolman.xyz/',
            data: {
                'v': $value,
                't': $type
            },
            timeout: 10000,
            success: function(data) {
                $('tbody').html(data);
            },
            error: function() {
                $('tbody').html("");
            }
        });
    };