Prev Demo
jQuery
>
.Load() - Load Web Page Content
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <input type="button" id="btnLoad" value="Load Simple Page Content" /> <textarea id="txtArea1" name="txtArea1" rows="10" cols="50"></textarea> <script> // without callback $("#btnLoad").click(function () { $("#txtArea1").load('jQueryAjaxData.aspx?format=json'); }); // with callback $("#btnLoad").click(function () { $("#txtArea1").load('jQueryAjaxData.aspx?format=json', function (e) { alert(e); }); }); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output