title: jQuery If div has anchor child then
body: <p>Having trouble on a simple one. My morning tea isn't strong enough.</p>
  
  <p>IF div has a child that's an anchor THEN- blah. Don't want to add an additional class to .box</p>
  
  <p>Something like:</p>
  
  <pre><code>$('.box').click(function(){
      if ($(this).children('a')) {
          //some thing
      } else {
          //some thing else
      }
  });
  
  &lt;div class="box"&gt;&lt;a href="#"&gt;&lt;img src="#" /&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;div class="box"&gt;&lt;img src="#" /&gt;&lt;/div&gt;
  &lt;div class="box"&gt;&lt;img src="#" /&gt;&lt;/div&gt;
  </code></pre>