I am working with the following http://jsbin.com/useqa4/10
My query revolves around hovering over li elements in the submenu using the code snippet below:
$(".submenuList li").hover(function () {
$(".submenuCurrent").removeClass("submenuCurrent");
$(this).addClass("submenuCurrent");
});
When hovering over any of these li elements, I want to change and display a specific div in the right section.
For instance:
for the first li, display the div
#prasentRight
for the second li, display the div
#elitRight
for the third li, display the div
#suspendisseRight
for the fourth li, display the div
#laoreetRight
My challenge lies in determining the current index of .submenuList li
Can anyone provide guidance on this issue?