I have this code, but when I click the back button in the browser the menu is still visible and it's class still is 'show'
$("#courses > a,#masterclasses > a,#the-team > a").click(function (e) {                                                            
    e.preventDefault();
});
$('#courses > a,#courses-nav').hover(function(){
    $('#courses-nav').addClass('show');
    $('#courses > a').css('color','#43b2b0');
},function(){
    $('#courses-nav').removeClass('show');
    if ($('body').hasClass('courses')) {
        $('#courses > a').css('color','#43b2b0');
        }
        else {
        $('#courses > a').css('color','#000');
    }
}); 
I have tried adding this... $('#courses-nav,#masterclasses-nav,#the-team-nav').removeClass('show'); ...but that doesn't fix the problem.
Thanks for any help in fixing this issue.
C
