1$('.click').click(function() {
2 // get the contents of the link that was clicked
3 var linkText = $(this).text();
4
5 // replace the contents of the div with the link text
6 $('#content-container').html(linkText);
7
8 // cancel the default action of the link by returning false
9 return false;
10});
11