I have fiddled the code try it.
using jquery
var diva = $('div.a'),
divb = $('div.b')
divb.hide();
diva.on('mouseover', function(){
divb.show();
});
diva.on('mouseout', function(){
divb.hide();
});
3
solved Hide div on mouseout [closed]