I am not able to load an external html page into a div in my page.
My Jquery Code is:
$(document).ready(function(){
var url = 'http://www.google.com';
$.get(url, function(response) {
$('div#external').html(response);
});
});
My HTML page is
<html><body><div id="external"></div></body></html>
I also tried using another JQuery code
$(document).ready(function() {
$('#external').load('http://google.com');
});
Could anyone please help me.
Thanks
Amal
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…