How to call another page using jQuery?

Poster
Posted by Poster under jQuery category on | Views : 20269
To call another page using jQuery, you can write following code.

<script type="text/javascript">
// call the page and get the response, set the value into a TextArea having id as defaultData.
$.get("default.aspx", function(data) {
$("#defaultData").attr("value", data);
});
</script>



<script type="text/javascript">
// simply calls the page and forget, don't wait for response
$.get("default.aspx");
</script>

Comments or Responses

Login to post response