Skip to content

Instantly share code, notes, and snippets.

@Morasta
Last active August 29, 2015 14:01
Show Gist options
  • Save Morasta/1857ff0fe0b8992c0889 to your computer and use it in GitHub Desktop.
Save Morasta/1857ff0fe0b8992c0889 to your computer and use it in GitHub Desktop.
Drupal 7: Add class to om-maximenu parent item
$('.om-maximenu-content').hover(
function () {
$(this).parent().addClass('active-parent-li');
},
function () {
$(this).parent().removeClass('active-parent-li');
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment