Load external content without AJAX using jQuery

$("#content").load("something.html", function(response, status, xhr) { // error handling if(status == "error") { $("#content").html("Danger Will Robinson! An error occured: " + xhr.status + " " + xhr.statusText); } });

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.