Effective Event Binding with jQuery

I thought that was likely the case. It’s just that selecting elements via the attribute is pretty ugly:

$('[data-hook="nav-menu-toggle"]')

I thought maybe there was a better way by using data attributes but I guess not.