jquery get html from url code example
Example 1: jquery ajax get
$.ajax({
url: "www.site.com/page",
success: function(data){
$('#data').text(data);
},
error: function(){
alert("There was an error.");
}
});
Example 2: jquery get url
var currentURL = $(location).attr('href');
var currentURL = window.location.href;