Jquery / Basics / Ajax
Jquery Ajax
-
What is ajax
-
Implementation
Include Jquery library
In html
in script
handle error
$(document).ready(function () { $(".btn_click").click(function () { $.ajax({ url: "geeks.txt", success: function (result) { $("#ajax_container").html(result); }, error: function (xhr, status, error) { console.log(error); } }); }); });