title: How do I check if an HTML element is empty using jQuery?
body: <p>I'm trying to call a function only if an HTML element is empty, using jQuery.</p>
  
  <p>Something like this:</p>
  
  <pre><code>if (isEmpty($('#element'))) {
      // do something
  }
  </code></pre>