i have the following code that is not working properly, what the hell am i doing wrong???
$('#gallerynav ul li a').click(function(){
var href = $('#gallerynav ul li a').attr('href')
$("#galleries").children().fadeOut(500 , function(){
(href).fadeIn(500)
})
})
i have the href of the links set like this
<div id="gallerynav">
<ul>
<li><a href="#foo">link</a></li>
</ul>
</div>