title: How to check class name exist in child div; of parent div using jquery?
body: <p>How to check whether div Class within div class exist or not?</p>
  
  <p>In following example; i want to check whether "showOnload" div class exist inside; parent div class "hideUnhidePanel"?</p>
  
  <pre><code>&lt;div id="lodaDiv" hidden="true"  class="hideUnhidePanel"&gt;
    &lt;div class="showOnload"&gt;
    &lt;/div&gt;
    &lt;div class="showOnload"&gt;
    &lt;/div&gt;
    &lt;div class="showOnload"&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="load2Div" hidden="true"  class="hideUnhidePanel"&gt;
  //Nothing exist
  &lt;/div&gt;
  </code></pre>
  
  <p>JQuery Code:</p>
  
  <pre><code>$('.hideUnhidePanel').each(function() {
  alert('yo');
  if($(this).children('showOnload'))
  alert('child exist');
  });
  </code></pre>
  
  <p>Fiddle: <a href="https://jsfiddle.net/5h49x7qe/" rel="nofollow">https://jsfiddle.net/5h49x7qe/</a></p>
  
  <p><strong>Update</strong>:<br>
  Note -> In fiddle, it is displaying alert thrice; but in actual it should show two times only; as third showHidePanel does not have "showOnload" class.</p>