Jquery Get Method Example - Jquery
How to use get method in jquery?
Snippet Code
Simple jquery code allows you to load data from server and get it back through HTTP GET request.The jquery code using get method is given below.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script>
$(function()
{
$.get("simpledemo.html", function(data, textStatus)
{
alert(textStatus + ". Here is the response: " + data);
});
});
</script>
simpledemo.html:
Welcome!!!
Tags