Prev Demo
jQuery
>
.Ajax() - Asynchronous Ajax Request
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="bntAjax" value="Load Data + Other Ajax Test" /> <div id="divResult"></div> <script> $("#bntAjax").click(function () { $.ajax({ type: "POST", url: "jQueryAjaxData.aspx", data: "a=2&b=5", success: function (msg) { $("#divResult").text(msg); } }); }); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output