title: How to Write jQuery Only if a Child Div has a Class
body: <p>I have a menu that will be generated in php that will have the possibility of having two different child divs within it. Long story short, the php will add a div with a class name of "showBubbles" within the "li", and/or another div with the class of "hideLogo." I need to execute one function if "showBubbles" div is present, and another function if "hideLogo" is present. How can I do this on mouse hover? 
  The structure looks like this:</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li&gt;
      &lt;a href="#"&gt;&lt;img src="imagePlaceholder" /&gt;&lt;/a&gt;
      &lt;div class="showBubbles"&gt;&lt;/div&gt;
      &lt;div class="hideLogo"&gt;&lt;/div&gt;
  &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>