I have just using the jquery hover :
$.each(navItems, function(i){
$(navItems[i]).hover(function(){
$(this).find('ul:first').css({visibility: "visible",display: "none"}).show();
},function(){
$(this).find('ul:first').css({visibility: "hidden"});
});
});
I works fine on all browser except IE. I have looking for the others code that work fine in all major browsers(include IE), normally they also using same the way i did.
Anybody can help me to explain what i wrong?
full code on here : http://jsfiddle.net/XrMNr/
All you need is this:
.NaviItem. This will return all elements with classNaviItemeach(). In this case thehoverhandler is applied to all occurrences of.NaviItemshow()andhide(), or some animation function likefadeOut/fadeIn.