title: jQuery determine if ul has class OR another one
body: <p>what is the right way to determine if an object has one class OR another one?
  The following is appearantly wrong..</p>
  
  <pre><code>if ($('#menu-item-49').hasClass('current-menu-item' || 'current-menu-parent') ) {
    $('ul.sub-menu ').css('display', 'block');
  }
  </code></pre>
  
  <p>Thanks!</p>