Created
May 15, 2014 11:03
-
-
Save carlosrojaso/742ec4cf78b3601f9a8e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// The hover helper function | |
$( "#menu li" ).hover(function() { | |
$( this ).toggleClass( "hover" ); | |
}); | |
// The toggle helper function | |
$( "p.expander" ).toggle( function() { | |
$( this ).prev().addClass( "open" ); | |
}, function() { | |
$( this ).prev().removeClass( "open" ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment