title: How to select a DIV if its child has any children?
body: <p>I'm trying to select any divs on a page if a certain child of theirs has any children of its own.</p>
  
  <p>Here's how the structure looks:</p>
  
  <pre><code>&lt;div id="ID-SOME_LONG_ID"&gt;
      &lt;div class="GK"&gt;
          &lt;div id="SOME_LONGID_#1434646398866197"&gt;&lt;/div&gt;
      &lt;/div&gt;                                  
  &lt;/div&gt;
  </code></pre>
  
  <p>So I want to select all divs with id <code>ID-SOME_LONG_ID</code> only if the <code>GK</code> DIV has any children.  It may or may not.</p>
  
  <p><code>ID-</code> stays the same and <code>SOME_LONG_ID</code> changes with each one.</p>
  
  <p>The other one <code>SOME_LONG_ID</code> is the same on as the parent, and after the <code>#</code> it's a 16 digit number that is random.</p>
  
  <p>Would using Regex be a good idea to look for them or maybe using jQuery's <code>.children()</code> like <code>$( ".GK" ).children()</code>?</p>
  
  <p>Thank you!</p>