title: jquery function if span exists
body: <p>How can I create a function in which it validates whether a "span" element exists under a div class? </p>
  
  <p>For example : </p>
  
  <pre><code>&lt;div class="myDiv"&gt;
  
  &lt;/div
  </code></pre>
  
  <p>it doesn't have <code>&lt;span&gt;</code> under <code>.myDiv</code>. So validate if span exists or not. Show "span exists" in console.log if it exists, and "span does not exists" if not. </p>
  
  <p>Thanks! </p>