javascript - horizontal menu li hover div content show -


i have 2 div elements in html page.left side div contains horizontal list of anchor elements.right side div contains content current anchor element on mouse hovers,it should change when hover mouse on link present in left side div.when hover mouse outside, last items content should display on right side div.

any using javascript or jquery?

you can add data-showdiv attribute link div id in it. put content div class , id in display:none; jquery :

$('a.item').hover(function(){    $('.class').hide();    $('#'+$(this).data('showdiv')).show();  }); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -