Error 'o' key will not open my description


#1

var main = function(){
$('.article').click(function(){
$('.article')removeClass('current');
$('.description').hide();
$('.article').addClass('current);
$('.article').children('.description').show();
});

$(document).keypress(function(event){
    if(event.which == 111){
        $('.current').children('.description').toggle();        
    } 
    else if(event.which == 110){
        $('.current').children('.description').toggle(); 
    }    
});

};

$(document).ready(main);
what is wrong with my code..It is giving me error 'o' key will not open your descriptionpost#1


#2

@nimi.desaigmail.com,

Have a close look at

$('.article')removeClass('current');


#3

i add . before removeClass..it is still giving error


#4

thanks i found my error... it was on line 5 of code $('.article').addClass('current); i forgot to close quote on current.