Hi Guys,
I must be missing something fundamental, but for the life of me cant work it out.
the idea is when u click that click event is then unbind. Also to note the alert('test') is not firing.
$(document).ready(function() {
$('#menu .cat-item a').each( function() {
$(this).bind('click',hide).unbind('click',hide);
});
});
function hide(){
alert('test')
$("#home-content").fadeIn();
$("#home-page").fadeOut();
}
Using jquery 1.4
Many Thanks
Dan