Answers for "include ajax in html page"

1

html include jquery

<!-- Wrap inside the head tag -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
Posted by: Guest on September-29-2020
0

how to add ajax within ajax

$.ajax({
        type: "post",
        url: "ajax/example.php",
        data: 'page=' + btn_page,
        success: function (data) {
            var a = data; 
            $.ajax({
                type: "post",
                url: "example.php",
                data: 'page=' + a,
                success: function (data) {

                }
                error: function (xhr) {
                   console.log(xhr.responseText); //saves alot of time during debugging
                }
            });
        }
    });
Posted by: Guest on March-31-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language