/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready(function() { $("a").click(function(event) { // Prevent default click action if javascript is enabled event.preventDefault(); //load the content of the new page into the content of the current page $("#content").load( $(this).attr("href") + " #content"); }) });