Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

About this user

1 total

Load file into Div via Ajax

// SCRIPT

$j(document).ready(function() {
	$j('a#ajaxLink').click(function(){
		$j("#ajaxBox").load("public/js/testAjax.html");
	});
});


// HTML
<a id="ajaxLink" href="javascript:;">Load Ajax</a>
<div id="ajaxBox"></div>
1 total