1 2 3 4 5 6 7 8 9 10 11 |
<script> $(document).ready(function(){ $("button").click(function(){ $.get("test.asp",function(data,status){ alert("Data: " + data + "nStatus: " + status); }); }); }); </script> |
and the button is: –
1 2 3 |
<button>click to send an HTTP GET request and get result back</button> |