Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery ajax get

$.ajax({
    	url: "www.site.com/page",
    	success: function(data){ 
    	    $('#data').text(data);
    	},
    	error: function(){
    		alert("There was an error.");
    	}
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #ajax
ADD COMMENT
Topic
Name
2+4 =