$().load() jQuery AJAX Demo

About - Contact - Office - Error

Click on the above links to load content.

$(
	function(){
		// Get a reference to the content div (into which we will load content).
		var jContent = $( "#content" );
						
		// Hook up link click events to load content.
		$( "a" ).click(
			function( objEvent ){
				var jLink = $( this );
				
				// Override the click to load the contents at URL.
				jContent.load( jLink.attr( "href" ) );
				
				// Prevent default click.
				return( false );					
			}
			);
		
	}
	);