Created
February 26, 2014 12:50
-
-
Save erezLieberman/9228947 to your computer and use it in GitHub Desktop.
//change style of div when hover on difrent div
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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