I am trying to figure out how to achieve this. My menu is placed in a container that is 500px high, with a background image. I would like the background image to change when hovering over a parent menu item. I believed I could do this using something like:
Using jQuery:
$('#elm').hover(
function(){ $(this).addClass('hover') },
function(){ $(this).removeClass('hover') }
)
Alternatively, with a .toggleClass
Then, I would just need to define the background image in the css classes they switch to. I have everything set up for the first menu item in my DEMO HERE, but it's not working correctly at the moment. It seems like such a simple task, so I'm not sure why it's not working. Any assistance would be greatly appreciated....thank you.
*I have commented out one function in the example in an attempt to try different methods