Skip to content

Instantly share code, notes, and snippets.

@frankyonnetti
Last active May 23, 2021 19:33
Show Gist options
  • Save frankyonnetti/5944893 to your computer and use it in GitHub Desktop.
Save frankyonnetti/5944893 to your computer and use it in GitHub Desktop.
#jquery add hover class to parent anchor for drop-down
// make hover state active on parent anchor
$('.block-menu-block.block ul.menu li ul').hover(
function () {
$(this).addClass("dd-active")
},
function () {
$(this).removeClass("dd-active")
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment