Hi. I have a page on my site that currently loads html via ajax. The JQuery is:
$(document).ready(function() {
$('.projects a').click(function(event) {
$('#work').load(this.href);
event.preventDefault();
});
});
and the html is:
<div class="projects">
<a href="work/link.html" title="blah" id="blah">blah</a>
<a href="work/link1.html" title="blah" id="blah">blah</a>
<a href="work/link2.html" title="blah" id="blah">blah</a>
</div>
this works fine but my requirements have changed I would like to pull a certain area of the page i'm loading into the #work div. So I would like to say when .project a is clicked load the contents of #this div from this.href into #work. Can anyone point me in the right direction?