I'm using the following jQuery to try and fade out a div, load an HTML page, then fade back in. The fades are working, but it doesn't seem to be loading the HTML, and I'm not quite sure what I'm missing. The first function is an attempt to load my first page into the div on initially visiting the site.
jQuery
$(document).ready(function() {
$("#Content").load("Landing.html");
});
$(document).ready(function() {
$("a").click(function(event){
event.preventDefault();
linkLocation = this.href;
$("#Content").fadeOut(500);
$("#Content").load("linkLocation");
$("#Content").fadeIn(500);
});
});
Basic idea of the HTML
<ul>
<li>
<a href="Contact.html">contact</a>
</li>
<li>
<a href="Portfolio.html">portfolio</a>
</li>
<li>
<a href="Services.html">services</a>
</li>
<li>
<a href="About.html">about</a>
</li>
<li>
<a href="Landing.html">home</a>
</li>
</ul>
<div id="Content"></div>
Thanks for any help!
EDIT
Thanks for all the suggestions. I've tried out each of them, and still no luck. I must be missing something really simple, but I just can't see it ATM.