if(openmenu != para){
addClass(openmenu , 'collapsed');
}
I am a beginner of JS, I want to add a classname to a element after a if statement. However, if(openmenu != para)
and if(!openmenu == para)
showed completely different result. Does anyone know why?