title: jQuery - Check if child div is visible
body: <p>I'm trying to see if the the child div of an li is visible and if so apply a class to the li. This is what I got but it's not working.</p>
  
  <pre><code>if(jQuery('#menu li').children('div').css('display') != 'none') {
      jQuery('li', this).addClass('dropHover');
  }
  </code></pre>