Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#menu').on('mouseover', '> li', function(e) {
- # attach hover event to the menu, and check which LI you are hovering
- if (!$(this).hasClass('.current)')) {
- $('.current', '#menu').removeClass('active');
- }
- }).on('mouseout', '> li', function (e) {
- if (!$(this).hasClass('.current)')) {
- $('.current', '#menu').addClass('active');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement