KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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('current-menu-item' || 'current-menu-parent') ) { $('ul.sub-menu ').css('display', 'block'); } Thanks!
Tags (comma-separated)
Save Edits
Cancel