when we click on sub menu parent menu should highlight. Please check my Javascript code. I am unable to get the result.Here i got the results only main menu highlighted. Please help me.Thanks in advance

.active{ background: #4FA9E4; color:#FFF; }




Check Solution