i want to:
- show load content from X.div
- on click a nav div fade out content
- load content
-
show new content
$(document).ready(function(){ $('#allcontent').load('data/home.html'); $('.hovers').click(function() { var page = $(this).attr('href'); $('#allcontent').fadeOut('slow', function() { $(this).load('data/' + page + '.html').show(); }); return false; });
Why is this not working?
Here's my fiddle: DEMO