use jquery to fade in button with hovering and the fadeout after hovering out -


i need jquery fade in button when hover on image disappear after hover off...i've been looking alot , can't disappear. im using hover() function , button class "goto" (#goto). use combination of fadein , fadeout?

is this want?

$("img").hover(     function(){$(".goto").fadein()}     ,function(){$(".goto").fadeout()} ); 

the jquery .hover() can take 2 functions, first being when hover on, second when hover off http://api.jquery.com/hover/


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -