Trying to bring in a specific DIV from a page called by the jQuery .load function.
This is the code i have:
<script type="text/javascript">
$('ul.navigation li a').click(function() {
$('#content-wrap').fadeOut(500);
var targetPage = $(this).attr('href')
setTimeout(function() {
$('#content-wrap').load(targetPage, function() {
$('#content-wrap').fadeIn(500);
});
});
return false;
});
</script>
...and it works - but it calls the whole page, rather than a specific area...
Cheers!