Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Loading a Portion of External Page using Ajax in jQuery</title> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("#box").load("/examples/html/test-content.html #hint"); }); }); </script> </head> <body> <div id="box"> <h2>Click button to load new content inside DIV box</h2> </div> <button type="button">Load Content</button> </body> </html>