emilyhedgecock 0 Newbie Poster

Hi
I am creating a drop down menu and i want to be able to select the elements that will be in the drop down list (the nested parts of my html <ul> list).

I want to do this so that when the user hovers over the visible part of the menu its is highlighted one colour. and then when the drop down menu, drops down, the options in it will be highlighted a different colour.

I am new to javascript and have been self teaching myself for the last month

Any help or suggestions much appreciated - i am thinking using a child selector but i have tried this with no luck $('ul > li').addClass('subnav')

Thanks