2
I have a form passing the data by GET to an API, the method put empty to load on the same page, when they return the data I put inside a div to display them, but I need you to do this without refreshing the page, I need you to only load the Did with the data, I don’t have the Jquery tricks.
I did that
 jQuery(document).ready(function () {
        jQuery('#ajax_form').submit(function () {
            var dados = jQuery(this).serialize();
            jQuery.ajax({
                type: "GET",
                url: "index.php",
                data: dados,
                success: function (data)
                {
                    alert('deu certo');
                }
            });
            return false;
        });
    });
But I need the data to return to a table and not to an Alert.
I think the problem is that you still don’t know much about javascript, maybe studying a little more pure language is a good idea before trying frameworks and libraries. An observation, the attribute
successis obsolete in the latest versions has been replaced by the functiondone, take a look at the documentation– Costamilam