jQuery Hover Problems -


i've got problem jquery. want display div when hover on element , hide when aren't on it.

$(function() {     $('#projects').hover(function() {         $('#projects .pane').show(200), $('#projects .pane').hide(200);     }) }); 

when hover disappears same time.

thanks :)

your code should this:

$(function() {     $('#projects').hover(function() {         $('#projects .pane').show(200);     }, function(){         $('#projects .pane').hide(200);    }); }); 

the hover expects 2 function parameters. 1 when mouse on , other 1 when mouse away.


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -