<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery Ajax() Function - Fetching Data</title> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function () { $.ajax({ url: "examples/resources/date-time.aspx", method: "GET", success: function (response) { $("#date-time").html(response); }, error: function (jqXHR, textStatus, errorThrown) { $("#date-time").html(errorThrown); } }); }); </script> </head> <body> <div id="date-time"> </div> </body> </html>