Skip to content

Instantly share code, notes, and snippets.

@erezLieberman
Created February 26, 2014 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erezLieberman/9228947 to your computer and use it in GitHub Desktop.
Save erezLieberman/9228947 to your computer and use it in GitHub Desktop.
//change style of div when hover on difrent div
//change style of div when hover on difrent div
$(function() {
$('.darkMask').hover(function() {
$(this).parent().find('.fa').addClass('off');
}, function() {
// on mouseout, reset the background colour
$(this).parent().find('.fa').removeClass('off');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment