what is the right way to determine if an object has one class OR another one? The following is appearantly wrong..
if ($(\'#menu-item-49\').hasClass(\'curren
So close!
Try:
if ($('#menu-item-49').hasClass('current-menu-item') || $('#menu-item-49').hasClass('current-menu-parent') ) { $('ul.sub-menu ').css('display', 'block'); }